We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5386b9a commit d2deb47Copy full SHA for d2deb47
1 file changed
streamz/graph.py
@@ -131,6 +131,13 @@ def readable_graph(graph):
131
def to_graphviz(graph, **graph_attr):
132
import graphviz
133
134
+ digraph_kwargs = {'name', 'comment', 'filename',
135
+ 'format', 'engine', 'encoding',
136
+ 'graph_attr', 'node_attr', 'edge_attr',
137
+ 'body', 'strict', 'directory'}
138
+ if not digraph_kwargs.intersection(graph_attr):
139
+ graph_attr = dict(graph_attr=graph_attr)
140
+
141
gvz = graphviz.Digraph(**graph_attr)
142
for node, attrs in graph.nodes.items():
143
gvz.node(node, **attrs)
0 commit comments