MathGroup Archive 2011

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

Search the Archive

Re: VertexWeight not showing in Graph

  • To: mathgroup at smc.vnet.net
  • Subject: [mg117212] Re: VertexWeight not showing in Graph
  • From: Lou <lvveen32 at xs4all.nl>
  • Date: Fri, 11 Mar 2011 04:36:12 -0500 (EST)
  • References: <ilacf6$23b$1@smc.vnet.net>

On 10 mrt, 12:25, Bob Hanlon <hanl... at cox.net> wrote:
> I was unable to find anything that indicates EdgeLabels->"EdgeWeight" sho=
uld 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 <lvvee... 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

Ok just for the update.
I was using Mathematica 8.0.0 and found in the documentation that the option
Edgelabels->"EdgeWeight" should work.
In fact it did something.. It didn't do anything so there's something
to it! Since when you use  Edgelabels->"Blah" you just get that
printed on the edges as expected.
But not with the word EdgeWeight! It's not printing anything.
In Mathematica 8.0.1 however the documentation has removed this option.
But now it does work abit more. Now the edgelabels are printed with
the  Edgelabels->"EdgeWeight".
Now isn't that funny!
I hope someone can solve this.


  • Prev by Date: Re: Contour line colors from z coord of a 3D plot
  • Next by Date: Re: determining boundary of a region in n-dimensional euclidean space
  • Previous by thread: Re: VertexWeight not showing in Graph
  • Next by thread: Re: VertexWeight not showing in Graph