MathGroup Archive 2011

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

Search the Archive

Re: How to plot weighted edges on this graph?


You could try playing around with the option EdgeRenderingFunction, for example

mat = {{0, 10., 0.1143}, {0.00001, 0, 10.}, {0.0899, 0.00001, 0}};
GraphPlot[Unitize[mat], VertexLabeling -> True,
 MultiedgeStyle -> True,
 EdgeRenderingFunction ->
  Function[{points, vertices, labels},
    {Thickness[0.006 Extract[mat, vertices]^0.2], Arrow[points, 0.05]}]]

Heike.

On 14 Aug 2011, at 14:15, Chrisantha Fernando wrote:

> Please could someone tell me how to plot weighted edges on this graph?
>
> Many thanks,
> Chrisantha
>
> GraphPlot[{{0, 10, 0.114338`}, {0.00001`, 0, 10}, {0.0899503`, 0.00001`, 0}},
> VertexLabeling -> True, DirectedEdges -> True]=
>





  • Prev by Date: Re: Getting the Date and Time From a Time Server
  • Next by Date: Re: Getting the Date and Time From a Time Server
  • Previous by thread: How to plot weighted edges on this graph?
  • Next by thread: Re: Just another Mathematica "Gotcha"