hiperwalk.WeightedGraph.adjacency_matrix#

WeightedGraph.adjacency_matrix(copy=True)[source]#

Return the adjacency matrix representation of the graph.

Parameters:
copybool, default=True

If True, return a hard copy of the adjacency matrix. If False, return a pointer to the adjacency matrix.

Returns:
scipy.sparse.csr_array.

Notes

In weighted graphs, the entries of the adjacency matrix \(A\) represent the weights of the edges. In general, the weight is a non-zero real number. In Hiperwalk, \(A\) can be an arbitrary Hermitian matrix.