Re: [sage-support] Re: Only dash some edges in a graph?

2014-06-03 Thread Ursula Whitcher
On 6/1/2014 3:49 PM, Tom Boothby wrote: g = Graph([(i,(i+1)%6,i%2) for i in range(6)]) h = Graph([(i,(i+2)%6,i%2) for i in range(6)]) k = Graph([(i,(i+3)%6,i%2) for i in range(6) if i<3]) [...] Nice. Thanks! --Ursula. -- You received this message because you are subscribed to the Google Grou

Re: [sage-support] Re: Only dash some edges in a graph?

2014-06-01 Thread Tom Boothby
g = Graph([(i,(i+1)%6,i%2) for i in range(6)]) h = Graph([(i,(i+2)%6,i%2) for i in range(6)]) k = Graph([(i,(i+3)%6,i%2) for i in range(6) if i<3]) pos = graphs.CycleGraph(6).get_pos() g.set_pos(pos) h.set_pos(pos) k.set_pos(pos) p = g.plot(color_by_label={0:'blue', 1:'red'}, edge_style='dashed', v

Re: [sage-support] Re: Only dash some edges in a graph?

2014-06-01 Thread Tom Boothby
If you partition the edges into several graphs, you can sum their plots. Just remember axes=false when you show(). On Sat, May 31, 2014 at 8:07 AM, Ursula Whitcher wrote: > On 5/30/2014 11:47 PM, P Purkayastha wrote: >> >> Perhaps you can try using different colors instead of different line >> s

Re: [sage-support] Re: Only dash some edges in a graph?

2014-05-31 Thread P Purkayastha
Created this ticket http://trac.sagemath.org/ticket/16421 On Saturday, May 31, 2014 11:07:20 PM UTC+8, Ursula Whitcher wrote: > > On 5/30/2014 11:47 PM, P Purkayastha wrote: > > Perhaps you can try using different colors instead of different line > > styles. There is an option called 'color_by_

Re: [sage-support] Re: Only dash some edges in a graph?

2014-05-31 Thread Ursula Whitcher
On 5/30/2014 11:47 PM, P Purkayastha wrote: Perhaps you can try using different colors instead of different line styles. There is an option called 'color_by_label', where you can set a label for some edges and color them accordingly. I am aware of this option, but I want to be able to color AN

[sage-support] Re: Only dash some edges in a graph?

2014-05-30 Thread P Purkayastha
Perhaps you can try using different colors instead of different line styles. There is an option called 'color_by_label', where you can set a label for some edges and color them accordingly. On Wednesday, May 28, 2014 6:29:31 AM UTC+8, Ursula Whitcher wrote: > > Is it possible to display a direc

[sage-support] Re: Only dash some edges in a graph?

2014-05-27 Thread kcrisman
I don't know but that is a great question! Is it possible to display a directed graph in Sage so that only some of the > edges are dashed? I found the edge_style option, but that seems to apply > to all of the edges simultaneously. > > UAW > -- You received this message because you are subscr