>
> Thanks, Dima, I will continue to experiment.  At the moment I am 
> having fun with show3d(color_by_label=True)! 
>

There are two helper functions you may like, buried in a module because I 
did not know how to write a nice user interface for that:

sage: from sage.graphs.graph_plot import _circle_embedding
sage: from sage.graphs.graph_plot import _line_embedding

The first one sets a list of vertices on a circle (you chose the center, 
you chose the radius, and you can rotate it a bit too)
The second one sets a list of vertices on a segment for (x1,y1) to (x2,y2)

An example that might interest you, if you have a graph whose "interesting 
components" are S1 and S2:

sage: g = graphs.CubeGraph(4)
sage: S1 = [x for x in g if x[-1] == '0']
sage: S2 = [x for x in g if x[-1] == '1']
sage: _circle_embedding(g,S1,center=(-1.5,0))
sage: _circle_embedding(g,S2,center=(1.5,0))
sage: g.show()

Of course some edge may be drawn on top of each other and you don't like 
that. That's why you can rotate one of these circles a bit:

sage: _circle_embedding(g,S2,center=(1.5,0),shift=.5)
sage: g.show()

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 [email protected].
To post to this group, send email to [email protected].
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