Graph adjacency matrix
Edges with weight zero are not visible in the sparse adjacency matrix returned
by adjacency
. This means that a weighted adjacency matrix
can represent a weighted graph only if there are no edges of weight zero.