1 | initial version |
This seems to be a bug in pdf exports. It has been reported as ticket http://trac.sagemath.org/ticket/15116.
As a temporary fix, you can
\begin{sageblock}
from sage.graphs.graph_coloring import edge_coloring
g = graphs.CompleteGraph(10)
p = g.graphplot(edge_colors=edge_coloring(g, hex_colors=True)).plot()
p.save('graph.eps')
\end{sageblock}
\includegraphics{graph.eps}
Note that LaTeX will complain it cannot find graph.eps
on first compilation, just ignore the error.