File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1695,7 +1695,7 @@ def is_cosectionally_complemented(self, certificate=False):
1695
1695
n = H .order ()
1696
1696
for e in range (n - 2 , - 1 , - 1 ):
1697
1697
t = 0
1698
- for uc in H .neighbors_out (e ):
1698
+ for uc in H .neighbor_out_iterator (e ):
1699
1699
t = jn [t , uc ]
1700
1700
if t == n - 1 :
1701
1701
break
Original file line number Diff line number Diff line change @@ -112,13 +112,13 @@ def _is_valid_ribbon(self, ribbon):
112
112
num_anchors = 0
113
113
114
114
for r in ribbon :
115
- anchor_neighbors = set (G .neighbors_out (r )).difference (set (R .neighbors_out (r )))
115
+ anchor_neighbors = set (G .neighbor_out_iterator (r )).difference (set (R .neighbor_out_iterator (r )))
116
116
if len (anchor_neighbors ) == 1 :
117
117
num_anchors += 1
118
118
elif len (anchor_neighbors ) > 1 :
119
119
return False
120
120
121
- for lc in G .neighbors_in (r ):
121
+ for lc in G .neighbor_in_iterator (r ):
122
122
if lc in ribbon :
123
123
continue
124
124
@@ -151,7 +151,7 @@ def _anchor(self):
151
151
152
152
# Find the anchor vertex, if it exists, and return the edge
153
153
for r in ribbon :
154
- anchor_neighbors = set (H .neighbors_out (r )).difference (set (R .neighbors_out (r )))
154
+ anchor_neighbors = set (H .neighbor_out_iterator (r )).difference (set (R .neighbor_out_iterator (r )))
155
155
if len (anchor_neighbors ) == 1 :
156
156
anchor = (r , anchor_neighbors .pop ())
157
157
break
You can’t perform that action at this time.
0 commit comments