@@ -389,7 +389,7 @@ function TreeSet(
389389 S = pattern (g)
390390 edge_to_index = edge_indices (g)
391391 nv = nb_vertices (g)
392- nt = forest. num_trees
392+ nt = forest. nt
393393
394394 # root_to_tree is a vector that maps a tree's root to the index of the tree
395395 # We can recycle forest.ranks because we don't need it anymore to merge trees
@@ -421,8 +421,8 @@ function TreeSet(
421421
422422 found_in_tree = Vector {Bool} (undef, nt)
423423 colptr_tree = zeros (T, ne + nt + 1 )
424- vertices1 = Vector {T} (undef, ne + nt)
425- vertices2 = Vector {T} (undef, 2 * ne)
424+ vertices_trees = Vector {T} (undef, ne + nt)
425+ neighbors_trees = Vector {T} (undef, 2 * ne)
426426
427427 pos_vertices1 = Vector {T} (undef, nt)
428428 pos_vertices2 = Vector {T} (undef, nt)
@@ -453,15 +453,15 @@ function TreeSet(
453453 pos_vertices1[index_tree] += 1
454454 # add j in the list of vertices of the current tree
455455 p = pos_vertices1[index_tree]
456- vertices1 [p] = j
456+ vertices_trees [p] = j
457457 end
458458 # increase the number of neighbors for j in the current tree
459459 p = pos_vertices1[index_tree]
460460 colptr_tree[p] += 1
461461 # increase the position of the visited neighbors in the current tree
462462 pos_vertices2[index_tree] += 1
463463 q = pos_vertices2[index_tree]
464- vertices2 [q] = i
464+ neighbors_trees [q] = i
465465 end
466466 end
467467 end
@@ -515,7 +515,7 @@ function TreeSet(
515515
516516 # compute the degree of each vertex in the tree
517517 for pos1 in first: last
518- vertex = vertices1 [pos1]
518+ vertex = vertices_trees [pos1]
519519 degree = colptr_tree[pos1 + 1 ] - colptr_tree[pos1]
520520 degrees[vertex] = degree
521521
@@ -539,7 +539,7 @@ function TreeSet(
539539
540540 mleaf = mapping[leaf]
541541 for pos2 in colptr_tree[mleaf]: (colptr_tree[mleaf + 1 ] - 1 )
542- neighbor = vertices2 [pos2]
542+ neighbor = neighbors_trees [pos2]
543543
544544 # Check if neighbor is the parent of the leaf or if it was a child before the tree was pruned
545545 if degrees[neighbor] != 0
0 commit comments