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

John

On 13 August 2014 14:14, Dima Pasechnik <[email protected]> wrote:
> On 2014-08-13, John Cremona <[email protected]> wrote:
>> I don't know what the correct terminology is, but I was want to
>> construct and display  graphs G in which the vertex set is
>> partitioned, so that the edges are of two types which I call
>> "horizontal" (between vertices in the same partition) and "vertical"
>> (between edges in different partitions.  Do such things exist, do they
>> have a name, and are they supported?  All I actually want to do with
>> them is display them nicely using G.show() or G.show3d(), in such a
>> way that (1) vertices in each partition are grouped together, and/or
>> (2) the two edge types are shown differently (e.g. different colours,
>> or different line style).
>>
>> Is anything like this available?
> Such a partition of vertices is usually called cut. I don't think there is a 
> dedicated
> plotting routine for these, you'd want to roll your own...
>
> You can use the optional parameters pos in plot() (or in Graph) to position 
> vertices, and edge_colors
> to specify edge colours you'd like to use.
>
> read stuff:
>
> sage: g=graphs.PetersenGraph()
> sage: g.plot?
>
> or
>
> sage: Graph?
>
>
>> Are these hypergraphs?
> not at all...
>
>>
>> John
> a
>
> --
> 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.

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