| Author |
Comment/Response |
Peter Pein
|
09/19/12 2:12pm
Hi,
I think, AdjacencyMatrix will do that. For example:
g = HypercubeGraph[3];
MatrixForm[am = AdjacencyMatrix[g]]
hth,
Peter
P.S.: am is a sparse array, so you'll have to throw a "Normal", when doing sth. like
Position[am[[5]] // Normal, 1][[All, 1]]
URL: , |
|