#17: fix get_outgoing_edges

This commit is contained in:
Karl Kroening 2017-07-05 04:23:05 -06:00
parent fc07f6c4fa
commit 11a24d0432

View File

@ -1,6 +1,5 @@
from builtins import object
from collections import namedtuple
import copy
import hashlib
@ -105,7 +104,7 @@ def get_incoming_edges(downstream_node, incoming_edge_map):
def get_outgoing_edges(upstream_node, outgoing_edge_map):
edges = []
for upstream_label, (downstream_node, downstream_label) in outgoing_edge_map:
for upstream_label, (downstream_node, downstream_label) in outgoing_edge_map.items():
edges += [DagEdge(downstream_node, downstream_label, upstream_node, upstream_label)]
return edges