MathGroup Archive 2003

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

Search the Archive

graph theory


I have noticed that as you change the vertex size, the
arrows in directed graphs don't move away from the
vertex. 

so if the vertex is large, then it compeletely covers
the arrow. ( example below)

is there a way to move the head of the arros in a
directed graphs so that it's not covered by the
vertex? 

maybe set it maybe few pixels away from the vertices
by default or something...  

also is there a way to change the shape of the arrow
head?  maybe to shape different than a triangle. 

any and all thoughts are appreciated 

thank you in advance. 

sean 



g2 = Graph[{
{{1, 2}, EdgeStyle -> ThinDashed}, 
{{2, 3}, EdgeStyle -> ThinDashed}, 
{{3, 4}, EdgeStyle -> ThinDashed}, 
{{3, 5}}, 
{{5, 6}, EdgeStyle -> ThinDashed}, 
{{6, 2}}},

	{{{0.5, 1.5}, VertexLabel -> AAA, VertexStyle\[Rule]
Box[Normal], VertexLabelPosition\[Rule] LowerRight,
VertexColor\[Rule] Normal},
	{{0.5, 1.0}, VertexLabel -> BBB, VertexStyle\[Rule]
Box[0.02], VertexLabelPosition\[Rule] UpperRight,
VertexColor\[Rule] Line},
	{{1.0, 1.0}, VertexLabel -> CCC, VertexStyle\[Rule]
Box[0.1], VertexLabelPosition\[Rule] UpperRight,
VertexColor\[Rule] Gray},
	{{1.5, 1.0}, VertexLabel -> DDD, VertexStyle\[Rule]
Box[0.05], VertexLabelPosition\[Rule] UpperLeft,
VertexColor\[Rule] Normal},
	{{1.0, 0.5}, VertexLabel -> EEE, VertexStyle\[Rule]
Box[0.05], VertexLabelPosition\[Rule] UpperLeft,
VertexColor\[Rule] Normal},
	{{0.5, 0.5}, VertexLabel -> FFF, VertexStyle\[Rule]
Box[0.05], VertexLabelPosition\[Rule] UpperRight,
VertexColor\[Rule] Normal}}, 
	EdgeDirection -> On];
ShowGraph[g2]
GraphOptions[g2]


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com


  • Prev by Date: Re: M5.0 keyboard shortcuts with linux
  • Next by Date: Get rounds values in alist
  • Previous by thread: Re: M5.0 keyboard shortcuts with linux
  • Next by thread: Get rounds values in alist