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-demo.py Normal file
View File

@@ -0,0 +1,7 @@
#! /usr/bin/python
import pydot
edges=[("Hello",2), ("Hello",3), ("Hello",4), (3,4)]
g=pydot.graph_from_edges(edges, directed=True)
g.write_jpeg('graph_from_edges_dot.jpg', prog='dot')
g.write_svg( 'graph_from_edges_dot.svg', prog='dot')