forked from pool/python-pydot
Accepting request 61764 from home:jnweiger
works, thanks OBS-URL: https://build.opensuse.org/request/show/61764 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydot?expand=0&rev=1
This commit is contained in:
7
example-rank.py
Normal file
7
example-rank.py
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
graph = pydot.Dot('graphname', graph_type='digraph')
|
||||
subg = pydot.Subgraph('', rank='same')
|
||||
subg.add_node(pydot.Node('a'))
|
||||
graph.add_subgraph(subg)
|
||||
subg.add_node(pydot.Node('b'))
|
||||
subg.add_node(pydot.Node('c'))
|
Reference in New Issue
Block a user