Re: issues with GraphPlot
- To: mathgroup at smc.vnet.net
- Subject: [mg99076] Re: [mg99053] issues with GraphPlot
- From: Murray Eisenberg <murray at math.umass.edu>
- Date: Sun, 26 Apr 2009 01:38:51 -0400 (EDT)
- Organization: Mathematics & Statistics, Univ. of Mass./Amherst
- References: <200904250850.EAA14234@smc.vnet.net>
- Reply-to: murray at math.umass.edu
Various folks on this list and at WRI showed me some (awkward) ways to render edge labels with GraphPlot. See the examples in the subsubsection "use the EdgeRenderingFunction option to GraphPlot" in notebook Graphs.nb at: http://www.math.umass.edu/~murray/Math_455_Eisenberg/Files/files.html I still regard GraphPlot as an only partially-baked Mathematica core function that is striving, but still falling short, of some of the functionality of the old Combinatorica package's ShowGraph. sean_incali at yahoo.com wrote: > Hello group, > > A few things that I just can't figure out. > > 1. EdgeRenderingFunction ignores edge labels. > > GraphPlot[{{"B" -> "A" , "+"}, {"A" -> "B", "+"}}, > DirectedEdges -> True, VertexLabeling -> True, > VertexRenderingFunction -> ({White, EdgeForm[Black], Disk[#, .05], > Black, Text[#2, #1]} &), EdgeLabeling -> True, > EdgeRenderingFunction -> ({ Arrowheads[Medium], > Arrow[#1 , 0.07]} &), PlotStyle -> Thickness[0.005]] > > 2. As it is, above code produces a graph that is stretched > horizontally a bit too much. About the half the horizontal width works > better for me. How do I accomplish that? AspectRatio-> 1/GoldenRatio > doesn't work since disk gets stretch also. > > 3. For node A to appear on the left, "B"-> "A" has to be defined > first. If I reverse it, then the node B will appear on the left. What > is the reason for this? > > Thanks in advance for any info. > > Sean > > > > > -- Murray Eisenberg murray at math.umass.edu Mathematics & Statistics Dept. Lederle Graduate Research Tower phone 413 549-1020 (H) University of Massachusetts 413 545-2859 (W) 710 North Pleasant Street fax 413 545-1801 Amherst, MA 01003-9305
- References:
- issues with GraphPlot
- From: sean_incali@yahoo.com
- issues with GraphPlot