HighlightedEdgeColors with Combinatoric`ShowGraph and AnimateGraph
- To: mathgroup at smc.vnet.net
- Subject: [mg88107] HighlightedEdgeColors with Combinatoric`ShowGraph and AnimateGraph
- From: Murray Eisenberg <murray at math.umass.edu>
- Date: Fri, 25 Apr 2008 05:27:05 -0400 (EDT)
- Organization: Mathematics & Statistics, Univ. of Mass./Amherst
- Reply-to: murray at math.umass.edu
The following works as expected to highlight two of the edges of a graph with a different color each: <<Combinatorica` g=Cycle[3]; ShowGraph[ Highlight[g,{{{1,2}},{{2,3}}},HighlightedEdgeColors->{Red,Blue}]] And the docs say that AnimateGraph takes the same options as Highlight. But the following does NOT work -- it uses just the first color, Red, when animating the highlighting of the two edges: AnimateGraph[g, {{1, 2}, {2, 3}}, HighlightedEdgeColors -> {Red, Blue}] What's wrong? (I do know that I used different syntax in the 2nd argument of Highlight, on the one hand, and in the 2nd argument of AnimateGraph, on the other hand. For Highlight to work within ShowGraph so as to animate edges, it is necessary to put the extra level of nesting in each edge specification. But such extra nesting in the case of AnimateGraph would not work: it gives no animation of edges.) -- Murray Eisenberg murray at math.umass.edu Mathematics & Statistics Dept. Lederle Graduate Research Tower phone 413 549-1020 (H) University of Massachusetts 413 545-2859 (W) 710 North Pleasant Street fax 413 545-1801 Amherst, MA 01003-9305