I answered on the sage-combinat list just after the forward of Nicolas
Thiéry, so I am pasting my answer here on sage-devel.

Sébastien

2010/1/3 Sébastien Labbé <sla...@gmail.com>:
> Hi Victor Miller,
>
>> I would like the following enhancements of graph drawing:
>>
>> 1) The ability to add an optional label to vertices (the labels
>> needn't be unique) and to have an option to drawing the graph use that
>> label, instead of the unique vertex label.  This arises, for
>> instances, in the "standard" drawing of decision diagrams in which
>> internal nodes of a DAG are labeled with a variable name.  A number of
>> different nodes may be labeled with the same variable name.
>
> Great!
>
>> What do people think of this?
>
> I have been needing (1) in the past : often, the repr of an object is
> not aesthetic (e.g. too long) for graph drawing. So I like the
> possibility of defining the labels of the vertices using a dict maybe.
> I also wondered recently if one can do a graph of Graphics objects.
> For example :
>
> sage: a = Graph().plot()
> sage: b = Graph({0:[0]}).plot()
> sage: c = Graph({0:[1],1:[0]}).plot()
> sage: d = Graph({0:[1],1:[2],2:[0]}).plot()
>
> Beware, the following line doesn't fail and produces dozens of
> drawings I guess because repr called on a,b,c and d produces a plot.
>
> sage: g = Graph({a:[b],b:[c],c:[d]})
>
> The following line could produce one plot where each vertices is a
> circle containing the plot of a, b, c or d (beware, is still produces
> dozens of plots) :
>
> sage: g.plot()
>
> I just wanted to share this idea. Feel free to share me development on
> (1), I will be happy to try it, gives comments and/or be a reviewer.
>
> Sébastien
>

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to