MathGroup Archive 2008

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

Search the Archive

Vertex Colors

  • To: mathgroup at smc.vnet.net
  • Subject: [mg93984] Vertex Colors
  • From: Kevin Coffey <kevin.coffey at undp.org>
  • Date: Mon, 1 Dec 2008 06:59:47 -0500 (EST)

Dear Math Group,

I assume there is a really simple answer to this question, but I rarely 
use graphics in mathematica, because as before, I wasted about two hours 
trying to find out something really simple.  I have an Adjacency Matrix 
that I want to convert to a Graph. No problem with this, but then I want 
to color each vertex a specific color.  I can get them all one color or 
alternating colors.  I though I could simply go with: 1->Red, 2->Blue, 
etc=E2=80=A6 No such luck.  Here is where I am right now:



ShowLabeledGraph[FromAdjacencyMatrix[%],VertexColor->??????]



Any help would be most appreciated.



Thank you,

Kevin







Kevin Coffey, Ph.D.

Knowledge Management Specialist &

Scientific Affairs Officer

MDGI - UNDP Asia Pacific Regional Centre Colombo

23 Independence Avenue, Colombo 07, Sri Lanka

Email: kevin.coffey at undp.org

Tel :- +94 (11)4526400 Ext.261



  • Prev by Date: Mathematica computes a different answer in version 7
  • Next by Date: Quick help needed very much!!!!
  • Previous by thread: Re: Manipulating a Binomial CDF
  • Next by thread: Re: Vertex Colors