Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #5151

GraphPlot bug? (missing self-loop)

From Alan <alan.isaac@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject GraphPlot bug? (missing self-loop)
Date 2011-09-22 11:30 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j5f68l$q85$1@smc.vnet.net> (permalink)

Show all headers | View raw


How can I display self-loops using GraphPlot when the input is an adjacency matrix?

GraphPlot[{a -> a, a -> b}, DirectedEdges -> True] (* displays self-loop *)
GraphPlot[{{1, 1}, {0, 0}}, DirectedEdges -> True] (* missing self-loop *)

GraphPlot gives similarly surprising results when the input is a graph:

g = Graph[{a -> a, a -> b}, DirectedEdges -> True] (* displays self loop *)
GraphPlot[g, DirectedEdges -> True] (* missing self loop *)

Thanks,
Alan Isaac

Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread


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