Re: [sage-devel] Re: Graph.show() and non-injective relabeling

2014-12-09 Thread Jori Mantysalo
On Tue, 9 Dec 2014, Liang Ze Wong wrote: Here's a hackish solution I got by digging into the graph_plot sourcecode:  http://git.sagemath.org/sage.git/tree/src/sage/graphs/graph_plot.pyThe relevant lines are 424 - 426. +1 for remembering this. I hope that someone who knows graphcis can check

Re: [sage-devel] Re: Graph.show() and non-injective relabeling

2014-12-09 Thread Liang Ze Wong
Here's a hackish solution I got by digging into the graph_plot sourcecode: http://git.sagemath.org/sage.git/tree/src/sage/graphs/graph_plot.py The relevant lines are 424 - 426. I created a GraphPlot object and modified the labels there instead of in the original graph. G=DiGraph({0:[1,2]}) G

Re: [sage-devel] Re: Graph.show() and non-injective relabeling

2014-10-14 Thread Jori Mantysalo
On Tue, 14 Oct 2014, Nathann Cohen wrote: G=DiGraph({0:[1,2]}) G.set_edge_label(0,1,'Hi!') G.set_edge_label(0,2,'Hi!') (But ".relabel(lambda e: ...)" -syntax is easier, I think.) Yes but we can't do the same for the vertices of a graph, of we would have no way to differentiate them afterwards

Re: [sage-devel] Re: Graph.show() and non-injective relabeling

2014-10-14 Thread Nathann Cohen
YooOO ! > Yes. Just like adges can be labelled so that more than one edge has same > label: > > G=DiGraph({0:[1,2]}) > G.set_edge_label(0,1,'Hi!') > G.set_edge_label(0,2,'Hi!') > > (But ".relabel(lambda e: ...)" -syntax is easier, I think.) Yes but we can't do the same for the vertices o

Re: [sage-devel] Re: Graph.show() and non-injective relabeling

2014-10-13 Thread Jori Mantysalo
On Fri, 3 Oct 2014, Nathann Cohen wrote: A ticket about this: http://trac.sagemath.org/ticket/15206 . This is not related to posets only, but to graphs in general. Is anyone planning to do this? I do not understand: do you only want to draw a graph with "anything you want" as labels of the v

[sage-devel] Re: Graph.show() and non-injective relabeling

2014-10-03 Thread Nathann Cohen
> > A ticket about this: http://trac.sagemath.org/ticket/15206 . This is not > related to posets only, but to graphs in general. Is anyone planning to do > this? > I do not understand: do you only want to draw a graph with "anything you want" as labels of the vertices ? If so, I have no idea