#6615: Small bug in Graph.plot()
--------------------------+-------------------------------------------------
 Reporter:  ncohen        |       Owner:  rlm
     Type:  defect        |      Status:  new
 Priority:  major         |   Milestone:     
Component:  graph theory  |    Keywords:     
 Reviewer:                |      Author:     
   Merged:                |  
--------------------------+-------------------------------------------------
Description changed by ncohen:

Old description:

> It may take only two lines, but I do not know which ones (I got a bit
> lost reading graph_plot.py) and it may take half a second to who wrote it
> in the first place.
>
> g=graphs.PetersenGraph()
> g.plot(edge_colors={"red":[(0,1)]})
> g.plot(vertex_colors={"red":[1]})
>
> When you plot a graph and want some edges to have a different color, the
> first plot is perfect. In the second case, though, I think it would be
> better to assign the others vertices a default color ;-)

New description:

 It may take only two lines, but I do not know which ones (I got a bit lost
 reading graph_plot.py) and it may take half a second to who wrote it in
 the first place.

 g=graphs.PetersenGraph()

 g.plot(edge_colors={"red":[(0,1)]})

 g.plot(vertex_colors={"red":[1]})

 When you plot a graph and want some edges to have a different color, the
 first plot is perfect. In the second case, though, I think it would be
 better to assign the others vertices a default color ;-)

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6615#comment:1>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to