Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #4413
| From | Heike Gramberg <heike.gramberg@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: How to plot weighted edges on this graph? |
| Date | 2011-08-15 00:23 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j29ou3$7co$1@smc.vnet.net> (permalink) |
| References | <201108131049.GAA25536@smc.vnet.net> <201108141215.IAA03464@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]=
>
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: How to plot weighted edges on this graph? Heike Gramberg <heike.gramberg@gmail.com> - 2011-08-15 00:23 +0000
csiph-web