Skip to content

Commit 1a320bc

Browse files
author
Toto Lin
authored
Merge pull request #46 from FlierKing/patch-1
Fixed DAG bug
2 parents 4a52d1d + 9a6a2c7 commit 1a320bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cyaron/graph.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def DAG(point_count, edge_count, **kwargs):
304304
weight_limit[0], weight_limit[1]))
305305

306306
used_edges = set()
307-
edge_buf = list(Graph.tree(point_count, weight_limit=weight_gen()).iterate_edges())
307+
edge_buf = list(Graph.tree(point_count, weight_limit=weight_limit).iterate_edges())
308308
graph = Graph(point_count, directed=True)
309309

310310
for edge in edge_buf:
@@ -364,7 +364,7 @@ def UDAG(point_count, edge_count, **kwargs):
364364
weight_limit[0], weight_limit[1]))
365365

366366
used_edges = set()
367-
graph = Graph.tree(point_count, weight_limit=weight_gen(), directed=False)
367+
graph = Graph.tree(point_count, weight_limit=weight_limit, directed=False)
368368

369369
for edge in graph.iterate_edges():
370370
if not repeated_edges:

0 commit comments

Comments
 (0)