We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfbc024 commit 90449d8Copy full SHA for 90449d8
ogc/bblocks/models.py
@@ -510,7 +510,7 @@ def __init__(self,
510
while cycles:
511
#for cycle in cycles:
512
# dep_graph.remove_edge(cycle[0], cycle[1])
513
- dep_graph.remove_edges_from((cycle[0], cycle[1]) for cycle in cycles)
+ dep_graph.remove_edges_from((cycle[0], cycle[-1]) for cycle in cycles)
514
cycles = list(nx.simple_cycles(dep_graph))
515
self.bblocks: dict[str, BuildingBlock] = {b: self.bblocks[b]
516
for b in nx.topological_sort(dep_graph)
0 commit comments