14
0
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:
Ciaran Farrell
2011-02-18 11:38:46 +00:00
committed by Git OBS Bridge
commit 9dd5e10f1c
7 changed files with 99 additions and 0 deletions

7
example-rank.py Normal file
View 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'))