MathGroup Archive 2005

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

Search the Archive

Re: Vertex labeling


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