mirror of
https://github.com/kkroening/ffmpeg-python.git
synced 2025-04-06 04:15:44 +08:00
#17: fix get_outgoing_edges
This commit is contained in:
parent
fc07f6c4fa
commit
11a24d0432
@ -1,6 +1,5 @@
|
|||||||
from builtins import object
|
from builtins import object
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
import copy
|
|
||||||
import hashlib
|
import hashlib
|
||||||
|
|
||||||
|
|
||||||
@ -105,7 +104,7 @@ def get_incoming_edges(downstream_node, incoming_edge_map):
|
|||||||
|
|
||||||
def get_outgoing_edges(upstream_node, outgoing_edge_map):
|
def get_outgoing_edges(upstream_node, outgoing_edge_map):
|
||||||
edges = []
|
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)]
|
edges += [DagEdge(downstream_node, downstream_label, upstream_node, upstream_label)]
|
||||||
return edges
|
return edges
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user