| 1 | initial version |
Install graphviz on your system and install dot2tex:
sage -i dot2tex
Use it to generate tikz code:
sage: G = ... your graph ....
sage: kwds = dict(format='dot2tex', edge_labels=True, color_by_label=False, prog='dot')
sage: G.latex_options().set_options(**kwds)
sage: tikz = graph._latex_()
View it:
sage: view(G)
You may test prog='neato' for another type of node placement.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.