Got from http://www.sagemath.org/doc/reference/plotting/sage/graphs/graph_plot.html and works fine in sage cloud worksheet shell.. Compute edge_colors from your coloring.
from sage.plot.colors import rainbow C = graphs.CubeGraph(5) R = rainbow(5) edge_colors = {} for i in range(5): edge_colors[R[i]] = [] for u,v,l in C.edges(): for i in range(5): if u[i] != v[i]: edge_colors[R[i]].append((u,v,l)) C.graphplot(vertex_labels=False, vertex_size=0, edge_colors=edge_colors).show() Dominique > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.