Just completing the answers here, in case somebody needs it:

'view(g)' has a different behaviour in Sage and in SMC. In Sage it uses 
LaTeX, while in SMC it is more or less equivalent to g.show(method='js') 
(which relies on javascript/d3js, hence no latex whatsoever).

Currently, there is no way to specify a color for the vertices in 
g.show(method='js'). It is not hard to add if somebody needs it. I wrote 
this code and thus only added there what I needed. What I needed was a way 
to 'differentiate' vertices, and I do not mind what the colors are as long 
as they are different.

    sage: g = graphs.PetersenGraph()
    sage: g.show(method='js', vertex_partition=[g.independent_set()])

(I know, the vertex partition is not a vertex partition as not all vertices 
appear. The partition is automatically completed if necessary)

Let me also add that perhaps the colors are not so different from each 
other in this picture (I would guess dark blue/light blue) on your screens. 
I fixed that in #19591 (needs_review) and the result is blue/orange, which 
is much better.

Have fun,

Nathann

-- 
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.

Reply via email to