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