Message Boards Message Boards

0
|
18102 Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Not getting required adjacency matrix

Posted 10 years ago

Hello everyone,

I am new user of Mathematicia and have been trying to get my hands on this amazing tool by analyzing random graphs and networks related to my research. However, this tool does not returns the correct adjacency matrix for the graph as mentioned below:

Graph[{1 <-> 7, 1 <-> 2, 1 <-> 6, 2 <-> 3, 2 <-> 5, 3 <-> 4, 4 <-> 5, 5 <-> 6}]

The correct adjacency matrix for the above graph should be Correct Adjacency Matrix

But Mathematicia tool returns the answer as enter image description here

This is the syntax I have used: enter image description here

Please help me to know where am I going wrong. Thank you.

2 Replies
Posted 10 years ago
POSTED BY: Bill Simpson
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract