Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

SageTex and graphs

Hey guys, Today i was looking for some graph plotting and i didn't arrived to use that piece of code in my .tex :

from sage.graphs.graph_coloring import edge_coloring
g = graphs.CompleteGraph(10)
g.graphplot(edge_colors=edge_coloring(g, hex_colors=True)).plot()

I can insert the first part in a block, but to plot I don't have the answer. I tried : \sageplot{g.graphplot(edge_colors=edge_coloring(g, hex_colors=True)).plot()} and \sage{g.graphplot(edge_colors=edge_coloring(g, hex_colors=True))} but nothing works :/

Of course \sage{g} works but i'd like to have the graphical options !

Help plz :)

Ty