MathGroup Archive 2005

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

Search the Archive

Re: Vertex labeling

  • To: mathgroup at
  • Subject: [mg53987] Re: [mg53979] Vertex labeling
  • From: Andrzej Kozlowski <akoz at>
  • Date: Sun, 6 Feb 2005 00:44:56 -0500 (EST)
  • References: <>
  • Sender: owner-wri-mathgroup at

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

  • 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