Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: VertexStyle determined by List elements

  • To: mathgroup at smc.vnet.net
  • Subject: [mg54161] Re: [mg54135] VertexStyle determined by List elements
  • From: "David Park" <djmp at earthlink.net>
  • Date: Sat, 12 Feb 2005 01:57:11 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Henning,

Here is an example.

<< DiscreteMath`Combinatorica`

varlist = Range[5]/50;

vstyles = 
    Table[{i, VertexStyle -> Disk[Part[varlist, i]]}, {i, 1, 
        Length[varlist]}];
g = Star[5];

ShowGraph[SetGraphOptions[g, vstyles]];

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/ 




From: Henning Heiberg-Andersen
To: mathgroup at smc.vnet.net


Hi,

I have generated some large graphs with the Combinatorica Package,
and have a large List of different variables I would like to apply in the
VertexStyle command. 

More specific, how can I get from typing by hand


SetGraphOptions[graph,{1,VertexStyle->Disk[var1]},
                      {2,VertexStyle->Disk[var2]},...
                   ...{N,VertexStyle->Disk[varN]}]

to a more sensible solution? 

Best regards,

Henning Heiberg-Andersen




  • Prev by Date: Re: Image Geometric Correction
  • Next by Date: Re: Re: Derivative of g(z) = Arg(z) and f(z) = Re(z) + Im(z)?
  • Previous by thread: Re: VertexStyle determined by List elements
  • Next by thread: Re: VertexStyle determined by List elements