Compute the adjacency matrix of a graph.
[A]=NARVAL_G_AdjacencyMatrix(g)
graph.
adjacencency matrix.
NARVAL_G_AdjacencyMatrix computes the adjacency matrix A of the graph g. By definition, the adjacency matrix of a finite graph of size n is the nxn matrix where the non-diagonal component Aij rates 1 is there is an edge between nodes i and j (0 otherwise).