PyGraphviz: Difference between revisions
(Created page with "http://networkx.lanl.gov/pygraphviz/ <source lang="python"> import pygraphviz as pgv g = pgv.AGraph() g.add_node(nn, label=label.encode("utf-8"), shape="box", URL=rdfnode(row['...") |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
</source> | </source> | ||
[[Category: | See [[Graphviz]] | ||
== Resources == | |||
* [http://www.graphviz.org/doc/info/attrs.html Node Attributes] | |||
[[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