Re: changing style of vertices for ShowGraph with Combinatorica
- To: mathgroup at smc.vnet.net
- Subject: [mg86307] Re: changing style of vertices for ShowGraph with Combinatorica
- From: "Steve Luttrell" <steve at _removemefirst_luttrell.org.uk>
- Date: Sat, 8 Mar 2008 05:40:18 -0500 (EST)
- References: <fqqrql$k9j$1@smc.vnet.net>
You could use the native GraphPlot function to plot your Combinatorica-defined graph as follows: Needs["Combinatorica`"] g = Cycle[3]; GraphPlot[g, VertexRenderingFunction -> ({EdgeForm[{Thick, Red}], FaceForm[Yellow], Disk[#1, 0.05], Text[#2, #1]} &)] Stephen Luttrell West Malvern, UK "Murray Eisenberg" <murray at math.umass.edu> wrote in message news:fqqrql$k9j$1 at smc.vnet.net... > With Mathematica 6, I can change the default style (medium black disk) > for rendering the vertices of a Combinatorica Graph like this: > > Needs["Combinatorica`"] > > g = Cycle[3]; > ShowGraph[g, VertexStyle -> Disk[Large], VertexColor -> Red] > > But how can I, for example, change the vertex style so it is, say, a > large yellow disk with a thick red boundary? Or even just change it to > be a circle? I tried "obvious" things like the following, but they > cause errors: > > ShowGraph[g, VertexStyle -> Graphics[Circle[], ImageSize -> 20]] > > -- > 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 >
- Follow-Ups:
- Re: Re: changing style of vertices for ShowGraph with Combinatorica
- From: Murray Eisenberg <murray@math.umass.edu>
- Re: Re: changing style of vertices for ShowGraph with Combinatorica