We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9737377 commit 269d3abCopy full SHA for 269d3ab
1 file changed
streamz/graph.py
@@ -69,8 +69,6 @@ def create_graph(node, graph):
69
"""
70
# Step 1 build a set of all the nodes
71
node_set = build_node_set(node)
72
- if None in node_set:
73
- node_set.remove(None)
74
75
# Step 2 for each node in the set add to the graph
76
for n in node_set:
@@ -87,8 +85,7 @@ def create_graph(node, graph):
87
85
# Step 3 for each node establish its edges
88
86
89
t = hash(n)
90
- upstreams = [_ for _ in n.upstreams if _ is not None]
91
- for nn in upstreams:
+ for nn in n.upstreams:
92
tt = hash(nn)
93
graph.add_edge(tt, t)
94
0 commit comments