pull/685/merge
Shreyash 2 months ago committed by GitHub
commit db9e93a34f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -180,7 +180,7 @@ def graph_topo_sort(num_nodes, edges):
if nodes[node_id]['in'] == 0:
queue.append(node_id)
while len(queue):
node_id = queue.pop()
node_id = queue.popleft()
for outgoing_id in nodes[node_id]['out']:
nodes[outgoing_id]['in'] -= 1
if nodes[outgoing_id]['in'] == 0:

Loading…
Cancel
Save