Thikness of edges in a 3D graph
The group you are posting to is a
Usenet group . Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Newsgroups: comp.soft-sys.math.mathematica
From:
cherifrahal <cherif.ra... @gmail.com>
Date: Sat, 7 Nov 2009 11:54:41 +0000 (UTC)
Local: Sat 7 Nov 2009 11:54
Subject: Thikness of edges in a 3D graph
Hello, I'm beginner in Mathematica ! I need some help to draw a 3D graph with different edge's thikness Can someone help me ! I give here an example of my graphs ! Thank's in advance cherif Rahal GraphPlot3D[{1 -> 2, 1 -> 4, 1 -> 5, 2 -> 3, 2 -> 6, 3 -> 4, 3 -> 7, 4 -> 8, 5 -> 6, 5 -> 8, 6 -> 7, 7 -> 8, 5 -> 10, 6 -> 11, 10 -> 11, 10 -> 12, 11 -> 12, 12 -> 13, 9 -> 13}, EdgeRenderingFunction -> (Cylinder[{#1}, {0.05}] &), VertexCoordinateRules -> {1 -> {-1, 1, 2}, 2 -> {1, 1, 2}, 4 -> {-1, -1, 2}, 3 -> {1, -1, 2}, 5 -> {-2, 2, 0}, 6 -> {2, 2, 0}, 7 -> {2, -2, 0}, 8 -> {-2, -2, 0}, 9 -> {0, 0, 2}, 10 -> {-2, 4, 0}, 11 -> {2, 4, 0}, 12 -> {0, 3, 3}, 13 -> {0, 2.2, 3.5}}]
You must
Sign in before you can post messages.
You do not have the permission required to post.
Newsgroups: comp.soft-sys.math.mathematica
From:
"David Park" <djmp... @comcast.net>
Date: Sun, 8 Nov 2009 12:04:54 +0000 (UTC)
Local: Sun 8 Nov 2009 12:04
Subject: Re: Thikness of edges in a 3D graph
Look up Cylinder and Function in the Documentation Center. The EdgeRenderingFunction plugs the points defining the two ends of the edge into Cylinder where the #1 is. The second argument in Cylinder is the radius (thickness) of the edge. So just increase it. You don't need the extra brackets.
GraphPlot3D[{1 -> 2, 1 -> 4, 1 -> 5, 2 -> 3, 2 -> 6, 3 -> 4, 3 -> 7, 4 -> 8, 5 -> 6, 5 -> 8, 6 -> 7, 7 -> 8, 5 -> 10, 6 -> 11, 10 -> 11, 10 -> 12, 11 -> 12, 12 -> 13, 9 -> 13}, EdgeRenderingFunction -> (Cylinder[{#1}, 0.15] &), VertexCoordinateRules -> {1 -> {-1, 1, 2}, 2 -> {1, 1, 2}, 4 -> {-1, -1, 2}, 3 -> {1, -1, 2}, 5 -> {-2, 2, 0}, 6 -> {2, 2, 0}, 7 -> {2, -2, 0}, 8 -> {-2, -2, 0}, 9 -> {0, 0, 2}, 10 -> {-2, 4, 0}, 11 -> {2, 4, 0}, 12 -> {0, 3, 3}, 13 -> {0, 2.2, 3.5}}]
David Park djmp... @comcast.net http://home.comcast.net/~djmpark/
From: cherifrahal [mailto:cherif.ra... @gmail.com]
Hello, I'm beginner in Mathematica ! I need some help to draw a 3D graph with different edge's thikness Can someone help me ! I give here an example of my graphs ! Thank's in advance cherif Rahal GraphPlot3D[{1 -> 2, 1 -> 4, 1 -> 5, 2 -> 3, 2 -> 6, 3 -> 4, 3 -> 7, 4 -> 8, 5 -> 6, 5 -> 8, 6 -> 7, 7 -> 8, 5 -> 10, 6 -> 11, 10 -> 11, 10 -> 12, 11 -> 12, 12 -> 13, 9 -> 13}, EdgeRenderingFunction -> (Cylinder[{#1}, {0.05}] &), VertexCoordinateRules -> {1 -> {-1, 1, 2}, 2 -> {1, 1, 2}, 4 -> {-1, -1, 2}, 3 -> {1, -1, 2}, 5 -> {-2, 2, 0}, 6 -> {2, 2, 0}, 7 -> {2, -2, 0}, 8 -> {-2, -2, 0}, 9 -> {0, 0, 2}, 10 -> {-2, 4, 0}, 11 -> {2, 4, 0}, 12 -> {0, 3, 3}, 13 -> {0, 2.2, 3.5}}]
You must
Sign in before you can post messages.
You do not have the permission required to post.
Newsgroups: comp.soft-sys.math.mathematica
From:
cherifrahal <cherif.ra... @gmail.com>
Date: Mon, 9 Nov 2009 10:46:41 +0000 (UTC)
Local: Mon 9 Nov 2009 10:46
Subject: Re: Thikness of edges in a 3D graph
On Nov 8, 1:04 pm, "David Park" <djmp... @comcast.net> wrote:
> Look up Cylinder and Function in the Documentation Center.
> The EdgeRenderingFunction plugs the points defining the two ends of the edge > into Cylinder where the #1 is. The second argument in Cylinder is the radius > (thickness) of the edge. So just increase it. You don't need the extra > brackets.
> GraphPlot3D[{1 -> 2, 1 -> 4, 1 -> 5, 2 -> 3, 2 -> 6, 3 -> 4, 3 -> 7, > 4 -> 8, 5 -> 6, 5 -> 8, 6 -> 7, 7 -> 8, 5 -> 10, 6 -> 11, 10 -> 11, > 10 -> 12, 11 -> 12, 12 -> 13, 9 -> 13}, > EdgeRenderingFunction -> (Cylinder[{#1}, 0.15] &), > VertexCoordinateRules -> {1 -> {-1, 1, 2}, 2 -> {1, 1, 2}, > 4 -> {-1, -1, 2}, 3 -> {1, -1, 2}, 5 -> {-2, 2, 0}, 6 -> {2, 2, 0}, > 7 -> {2, -2, 0}, 8 -> {-2, -2, 0}, 9 -> {0, 0, 2}, > 10 -> {-2, 4, 0}, 11 -> {2, 4, 0}, 12 -> {0, 3, 3}, > 13 -> {0, 2.2, 3.5}}]
> David Park > djmp... @comcast.nethttp://home.comcast.net/~djmpark/
> From: cherifrahal [mailto:cherif.ra... @gmail.com]
> Hello, > I'm beginner in Mathematica !
thank you very much for your answer, but what I need, is different thikness for different edges, for exemple for the edge 1-> 2 I need the thikness to be 1 and for the edge 2->3 i need the thikness to be 3 ... etc. Is it possible to do that with mathematica ? Thank you in advance Cherif Rahal
> I need some help to draw a 3D graph with different edge's thikness > Can someone help me ! > I give here an example of my graphs ! > Thank's in advance > cherif Rahal > GraphPlot3D[{1 -> 2, 1 -> 4, 1 -> 5, 2 -> 3, 2 -> 6, 3 -> 4, 3 -> 7, > 4 -> 8, 5 -> 6, 5 -> 8, 6 -> 7, 7 -> 8, 5 -> 10, 6 -> 11, 10 -> 11, > 10 -> 12, 11 -> 12, 12 -> 13, 9 -> 13}, > EdgeRenderingFunction -> (Cylinder[{#1}, {0.05}] &), > VertexCoordinateRules -> {1 -> {-1, 1, 2}, 2 -> {1, 1, 2}, > 4 -> {-1, -1, 2}, 3 -> {1, -1, 2}, 5 -> {-2, 2, 0}, 6 -> {2, 2, 0}, > 7 -> {2, -2, 0}, 8 -> {-2, -2, 0}, 9 -> {0, 0, 2}, > 10 -> {-2, 4, 0}, 11 -> {2, 4, 0}, 12 -> {0, 3, 3}, > 13 -> {0, 2.2, 3.5}}]
You must
Sign in before you can post messages.
You do not have the permission required to post.