MathGroup Archive 2011

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

Search the Archive

GraphPlot bug? (missing self-loop)

  • To: mathgroup at smc.vnet.net
  • Subject: [mg121613] GraphPlot bug? (missing self-loop)
  • From: Alan <alan.isaac at gmail.com>
  • Date: Thu, 22 Sep 2011 07:25:56 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Reply-to: comp.soft-sys.math.mathematica at googlegroups.com

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




  • Prev by Date: How to distribute specific tasks to specific subkernels?
  • Next by Date: Re: simple graphics question
  • Previous by thread: Re: How to distribute specific tasks to specific subkernels?
  • Next by thread: Re: GraphPlot bug? (missing self-loop)