# Finding adjacency matrix of a Mathematica's in-built graph? [closed]

I want to get the adjacency matrix of an in-built graph, say the dodecahedral graph. Naively using

AdjacencyMatrix[Dodecahedral]


doesn't give it to me. Any other way to get it?

• Dodecahedral is a symbol, not a graph. You want this: d = GraphData["DodecahedralGraph"]; AdjacencyMatrix[d], I think. – acl Apr 27 '15 at 20:01

am1 = GraphData["DodecahedralGraph", "AdjacencyMatrix"];

am2 = AdjacencyMatrix[GraphData["DodecahedralGraph"]];