Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #4413 > unrolled thread

Re: How to plot weighted edges on this graph?

Started byHeike Gramberg <heike.gramberg@gmail.com>
First post2011-08-15 00:23 +0000
Last post2011-08-15 00:23 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: How to plot weighted edges on this graph? Heike Gramberg <heike.gramberg@gmail.com> - 2011-08-15 00:23 +0000

#4413 — Re: How to plot weighted edges on this graph?

FromHeike Gramberg <heike.gramberg@gmail.com>
Date2011-08-15 00:23 +0000
SubjectRe: How to plot weighted edges on this graph?
Message-ID<j29ou3$7co$1@smc.vnet.net>
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]=
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web