PyGraphviz: Difference between revisions
No edit summary |
No edit summary |
||
Line 13: | Line 13: | ||
== Resources == | == Resources == | ||
* [www.graphviz.org/doc/info/attrs.html Node Attributes] | * [http://www.graphviz.org/doc/info/attrs.html Node Attributes] | ||
[[Category: Cookbook]] [[Category: Python]] | [[Category: Cookbook]] [[Category: Python]] |
Latest revision as of 11:13, 31 October 2011
http://networkx.lanl.gov/pygraphviz/
import pygraphviz as pgv
g = pgv.AGraph()
g.add_node(nn, label=label.encode("utf-8"), shape="box", URL=rdfnode(row['doc']))
g.add_edge(nn, onn)
g.draw(path="output.svg", format="svg", prog="fdp")
See Graphviz