test_contract#

Functions

test_contract_edge()

test_contract_edge_attributes()

++++ CONTRACTING **** d=V(d6 e2 d3 d2 e1 e0 d0) e=V(d5 d4 d1) ['framing'=0,'A'=0,'B'=0,'X'=3,'_deletions'=1,'_contractions'=7,'name'=None; ; d2:{'color'=1} d3:{'color'=1}] frozenset({d1, e2}) > PlanarDiagram with 2 nodes, 4 arcs, and adjacencies d → V(d5 d2=1 d1=1 e1 e0 d0), e → V(d4 d3) with framing 0 (A=0 B=0 X=3 _deletions=1 _contractions=7) src ('e', 0) dst ('d', 1) * d=V(d5 d2 d1 e1 e0 d0) e=V(d4 d3) ['framing'=0,'A'=0,'B'=0,'X'=3,'_deletions'=1,'_contractions'=7,'name'=None; ; d1:{'color'=1} d2:{'color'=1}] = PlanarDiagram with 2 nodes, 4 arcs, and adjacencies d → V(d6 d4 d3=1 d2=1 d1 e0 d0), e → V(d5) with framing 0 (A=0 B=0 X=3 _deletions=1 _contractions=7) > PlanarDiagram with 2 nodes, 4 arcs, and adjacencies d → V(d6 d4 d3=1 d2=1 d1 e0 d0), e → V(d5) with framing 0 (A=0 B=0 X=3 _deletions=1 _contractions=7) src ('e', 0) dst ('d', 1) * d=V(d6 d4 d3 d2 d1 e0 d0) e=V(d5) ['framing'=0,'A'=0,'B'=0,'X'=3,'_deletions'=1,'_contractions'=7,'name'=None; ; d2:{'color'=1} d3:{'color'=1}] = PlanarDiagram with 2 nodes, 4 arcs, and adjacencies d → V(d7 d6 d5=1 d4=1 d3=1 d2 d1 d0), e → V() with framing 0 (A=0 B=0 X=3 _deletions=1 _contractions=7)