Skip to main content

AdjacencyMatrix

AdjacencyMatrix[g] gives the vertex–vertex adjacency matrix of the graph g.

AdjacencyMatrix[{v->w,…}] uses rules v->w to specify the graph g.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.