Re: VertexWeight not showing in Graph
- To: mathgroup at smc.vnet.net
- Subject: [mg117103] Re: VertexWeight not showing in Graph
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Thu, 10 Mar 2011 06:06:27 -0500 (EST)
I was unable to find anything that indicates EdgeLabels->"EdgeWeight" should work. However, based on the documentation I would use
With[{gr = {1 \[UndirectedEdge] 2, 2 \[UndirectedEdge] 3,
3 \[UndirectedEdge] 1}, wt = {2, 3, 4}},
Graph[gr, EdgeWeight -> wt,
EdgeLabels -> Thread[gr -> wt]]]
Bob Hanlon
---- Lou <lvveen32 at xs4all.nl> wrote:
=============
Hi All,
I'm using the example in the helpfiles:
Graph[{1 \[UndirectedEdge] 2, 2 \[UndirectedEdge] 3,
3 \[UndirectedEdge] 1}, EdgeWeight -> {2, 3, 4}]
I read that it's possible to show the edgeweight as a label with
EdgeLabels->"EdgeWeight"
However using that option doesn't show the expected (by me that is..)
2,3 and 4.
See document on edgelabels.
What am I doing wrong?
Kind regards,
Laurent