William Stein wrote: > On Mon, Apr 27, 2009 at 7:45 AM, Robert Miller <r...@rlmiller.org> wrote: >> On Mon, Apr 27, 2009 at 6:47 AM, William Stein <wst...@gmail.com> wrote: >>> Hi Robert, >>> >>> Did you guys every write any code to plot *paths* in graphs? >> No, but you can color the edges of the path differently. > > That is pretty bad, IMHO. E.g., try this: > > g = graphs.CompleteGraph(5) > g.plot(edge_colors={'red':[(0,1)]}) > > If you try to color any edges, then it *deletes* all other edges that > aren't colored. >
Well, "deletes" is a pretty strong word. More accurately, it doesn't show any edges for which you didn't specify a color. I've found this to be a slight annoyance when I wanted to create pretty edge-colored graphs, as I have to specifically color my "other" edges black. Jason --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---