Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

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

Search the Archive

Is this a bug in the Adjacency Matrix function? Using 8.9.4.0

  • To: mathgroup at smc.vnet.net
  • Subject: [mg123977] Is this a bug in the Adjacency Matrix function? Using 8.9.4.0
  • From: Richard Palmer <rhpalmer at gmail.com>
  • Date: Tue, 3 Jan 2012 05:29:05 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

testgraph=Graph[#[[1]]\[DirectedEdge]#[[2]]&/@{{1,3},{2,3},{3,4},{3,5},{4,6},{4,7},{5,7},{6,7}},
VertexLabels->"Name",
ImagePadding->10]


MatrixForm[AdjacencyMatrix[testgraph],
 TableHeadings -> {Range[7], Range[7]}]


The Adjacency Matrix appears to be incorrect, e.g.  1 is not adjacent to 2.
 What am I missing?


  • Prev by Date: Re: Rule replacement doesn't work after NDSolve?
  • Next by Date: how turn off camera after using CurrentImage?
  • Previous by thread: Re: Mathematica on tablet computer
  • Next by thread: Re: Is this a bug in the Adjacency Matrix function? Using 8.9.4.0