Skip to content

Commit

Permalink
fixup! fixup! Optional topologically sorted graph.
Browse files Browse the repository at this point in the history
  • Loading branch information
thvitt committed Jul 20, 2020
1 parent c2b4c07 commit 985abda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/macrogen/graph.py
Expand Up @@ -753,9 +753,9 @@ def order_graph(self, graph: nx.MultiDiGraph) -> nx.MultiDiGraph:
for u, v in windowed(ref_order, 2):
if result.has_edge(u, v, 0):
result[u][v][0]['weight'] = 100
result[u][v][0]['topo'] = True
else:
result.add_edge(u, v, penwidth=0, dir='none', weight=100)
result[u][v][0]['topo'] = True
result.add_edge(u, v, penwidth=0, dir='none', weight=100, topo=True)
return result


Expand Down

0 comments on commit 985abda

Please sign in to comment.