Skip to content

Commit

Permalink
Merge pull request luogu-dev#46 from FlierKing/patch-1
Browse files Browse the repository at this point in the history
Fixed DAG bug
  • Loading branch information
Toto Lin authored Sep 16, 2018
2 parents 4a52d1d + 9a6a2c7 commit 1a320bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cyaron/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def DAG(point_count, edge_count, **kwargs):
weight_limit[0], weight_limit[1]))

used_edges = set()
edge_buf = list(Graph.tree(point_count, weight_limit=weight_gen()).iterate_edges())
edge_buf = list(Graph.tree(point_count, weight_limit=weight_limit).iterate_edges())
graph = Graph(point_count, directed=True)

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

used_edges = set()
graph = Graph.tree(point_count, weight_limit=weight_gen(), directed=False)
graph = Graph.tree(point_count, weight_limit=weight_limit, directed=False)

for edge in graph.iterate_edges():
if not repeated_edges:
Expand Down

0 comments on commit 1a320bc

Please sign in to comment.