Pydot
The page of pydot, a Python interface to Graphviz's Dot language.
# import pydot
# edges=[(1,2), (1,3), (1,4), (3,4)]
# g=pydot.graph_from_edges(edges)
g.write_jpeg('graph_from_edges_neato.jpg', prog='neato')
Check out the resulting image.
<< Home