Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #5180
| From | Alan <alan.isaac@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: GraphPlot bug? (missing self-loop) |
| Date | 2011-09-25 02:38 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j5m47p$plt$1@smc.vnet.net> (permalink) |
| References | <j5f68l$q85$1@smc.vnet.net> <j5hdj8$7jl$1@smc.vnet.net> |
Follow up question. The code below almost works how I want, but the last line produces a graph that does not show node c. How can I get node c to display when there are no edges to it? (I know I can do this with Graph by providing a list of nodes, but how to do it with GraphPlot?)
Thanks,
Alan Isaac
abcGraphPlot[rules_] := GraphPlot[rules,
VertexLabeling -> True,
MultiedgeStyle -> False,
EdgeRenderingFunction -> ({Red, Arrowheads[0.05],
Arrow[#1, 0.15]} &),
DirectedEdges -> True,
SelfLoopStyle -> 0.3,
VertexCoordinateRules -> {a -> {1, Sqrt[3]}, b -> {0, 0},
c -> {2, 0}},
VertexRenderingFunction -> ({GrayLevel[0.9], EdgeForm[Black],
Disk[#, .15], Black, Text[#2, #1]} &),
ImagePadding -> 10,
ImageSize -> 200]
abcGraphPlot[{a -> a, a -> b, b -> a, c -> c}]
abcGraphPlot[{a -> a, a -> b, b -> a}]
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread
GraphPlot bug? (missing self-loop) Alan <alan.isaac@gmail.com> - 2011-09-22 11:30 +0000
Re: GraphPlot bug? (missing self-loop) Simon <simonjtyler@gmail.com> - 2011-09-23 07:47 +0000
Re: GraphPlot bug? (missing self-loop) Alan <alan.isaac@gmail.com> - 2011-09-25 02:34 +0000
Re: GraphPlot bug? (missing self-loop) Alan <alan.isaac@gmail.com> - 2011-09-25 02:38 +0000
csiph-web