@@ -61,14 +61,14 @@ cdef class GabowEdgeConnectivity:
6161 .... : D = DiGraph( graphs. RandomRegular( 6, 50))
6262 sage: GabowEdgeConnectivity( D) . edge_connectivity( )
6363 6
64-
64+
6565 A complete digraph with `n` vertices is `n-1`-edge-connected::
6666
6767 sage: from sage. graphs. edge_connectivity import GabowEdgeConnectivity
6868 sage: D = DiGraph( digraphs. Complete( 10))
6969 sage: GabowEdgeConnectivity( D, use_rec = True) . edge_connectivity( )
7070 9
71-
71+
7272 Check that we get the same result when with and without the DFS-based
7373 speed-up initialization proposed in [GKLP2021 ]_::
7474
@@ -79,7 +79,7 @@ cdef class GabowEdgeConnectivity:
7979 sage: ec3 = GabowEdgeConnectivity( D, dfs_preprocessing=True, use_rec=True) . edge_connectivity( )
8080 sage: ec1 == ec2 and ec2 == ec3
8181 True
82-
82+
8383 TESTS:
8484
8585 :trac:`32169`::
@@ -158,9 +158,9 @@ cdef class GabowEdgeConnectivity:
158158 cdef int augmenting_root
159159 cdef bint* tree_flag # indicate whether a tree Ti has been touched
160160 cdef int * root # current root vertex of f_tree i
161- cdef int * L_roots # L_roots of the trees
161+ cdef int * L_roots # L_roots of the trees
162162 cdef bint* forests # indicate whether the f_tree is active or inactive
163- cdef bint** labeled #
163+ cdef bint** labeled #
164164
165165 cdef int ** parent_1 # parent of v in tree/forest Ti
166166 cdef int ** parent_2 # parent of v in tree/forest Ti
@@ -176,7 +176,7 @@ cdef class GabowEdgeConnectivity:
176176 cdef vector[int ] A_path
177177 cdef vector[int ] left_traverse
178178 cdef vector[int ] right_traverse
179-
179+
180180 cdef bint* seen # for method re_init
181181 cdef int * stack # stack of vertices for DFS in re_init
182182 cdef vector[vector[int ]] tree_edges # used to organise the edges of the trees
@@ -243,7 +243,7 @@ cdef class GabowEdgeConnectivity:
243243 self .n = G.order()
244244 self .m = G.size()
245245 self .mem = MemoryAllocator()
246-
246+
247247 # Build compact graph data structure with out and in adjacencies.
248248 # Loops are removed from the graph.
249249 self .build_graph_data_structure()
@@ -420,7 +420,7 @@ cdef class GabowEdgeConnectivity:
420420 if self .dfs_preprocessing and self .num_start_f_trees < self .n - 1 :
421421 self .re_init(tree)
422422
423- # There are n f-trees, and we try to join them
423+ # There are n f-trees, and we try to join them
424424 while njoins < self .num_start_f_trees- 1 :
425425 # Get the root of an active subtree or INT_MAX if none exists
426426 z = self .choose_root()
@@ -469,7 +469,7 @@ cdef class GabowEdgeConnectivity:
469469 self .my_depth[tree] = < int * > self .mem.calloc(self .n, sizeof(int ))
470470 if not self .my_parent_edge_id[tree]:
471471 self .my_parent_edge_id[tree] = < int * > self .mem.calloc(self .n, sizeof(int ))
472-
472+
473473 cdef int j
474474 for j in range (self .n):
475475 self .my_parent[tree][j] = 0
@@ -478,9 +478,9 @@ cdef class GabowEdgeConnectivity:
478478 self .labeled[tree][j] = False
479479 self .root[j] = j
480480 self .forests[j] = True
481-
481+
482482 self .num_joins = 0
483-
483+
484484 # Initialize T_k to be a DFS spanning forest of G \ T
485485 if self .dfs_preprocessing:
486486 self .compute_dfs_tree()
@@ -490,7 +490,7 @@ cdef class GabowEdgeConnectivity:
490490
491491 self .L_roots[tree] = self .UNUSED
492492 self .tree_flag[tree] = False
493-
493+
494494 cdef void compute_dfs_tree(self ):
495495 r """
496496 Find a DFS spanning forest of `G \b ackslash T`.
@@ -525,7 +525,7 @@ cdef class GabowEdgeConnectivity:
525525 self .find_dfs_tree(r)
526526 # Each call of find_dfs_tree creates an f-tree
527527 self .num_start_f_trees += 1
528-
528+
529529 cdef void find_dfs_tree(self , int r):
530530 r """
531531 Find more vertices of the f-tree rooted at `r`.
@@ -604,7 +604,7 @@ cdef class GabowEdgeConnectivity:
604604 self .num_joins += 1
605605 # recursively find more vertices and grow the subtree rooted at r
606606 self .find_dfs_tree_rec(v, r)
607-
607+
608608 cdef int choose_root(self ):
609609 """
610610 Return the root of an active f_tree, or INT_MAX if none exists.
0 commit comments