Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Is this a bug in the Adjacency Matrix function? Using 8.9.4.0
Replies: 1   Last Post: Jan 4, 2012 5:06 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Richard Palmer

Posts: 46
Registered: 7/31/06
Is this a bug in the Adjacency Matrix function? Using 8.9.4.0
Posted: Jan 3, 2012 5:32 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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?



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.