Skip to content

Commit f52f7c8

Browse files
committed
Contig stitcher: optimize transitive closure calculation
1 parent 77df8c2 commit f52f7c8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

micall/core/plot_contigs.py

-2
Original file line numberDiff line numberDiff line change
@@ -456,9 +456,7 @@ def remove_transitive_edges(graph):
456456

457457
def get_all_ancestors(recur, lst, graph, ancestor_name):
458458
if ancestor_name not in recur:
459-
recur = recur.copy()
460459
recur.add(ancestor_name)
461-
462460
if ancestor_name not in lst:
463461
lst.append(ancestor_name)
464462

0 commit comments

Comments
 (0)