Mathematica 9 is now available
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: Vertex labeling

  • To: mathgroup at smc.vnet.net
  • Subject: [mg53987] Re: [mg53979] Vertex labeling
  • From: Andrzej Kozlowski <akoz at mimuw.edu.pl>
  • Date: Sun, 6 Feb 2005 00:44:56 -0500 (EST)
  • References: <200502050817.DAA22324@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

On 5 Feb 2005, at 08:17, Steve Gray wrote:

> I'm using the graph functions in Combinatorica. Is there a built-in 
> way to get vertex labels
> displayed when doing ShowGraph? My graphs have up to about 50 vertices 
> at most. (Obviously the label
> display should remain correct after AddEdges, DeleteEdges, 
> AddVertices, etc.) I don't see any vertex
> labeling option for this function.
> 	Thanks for any information.
>
> Steve Gray
>
>
>
The easiest way is to use SetVertexLabels as follows:

g = Wheel[5]; h = SetVertexLabels[g, {a, b, c, d, e}]; ShowGraph[h]


Andrzej Kozlowski
Chiba, Japan
http://www.akikoz.net/~andrzej/
http://www.mimuw.edu.pl/~akoz/


  • Prev by Date: Re: Vertex labeling
  • Next by Date: Re: evalutating expression at different values
  • Previous by thread: Vertex labeling
  • Next by thread: Re: Vertex labeling