Network.adjacency_matrix

Network.adjacency_matrix(rtype='array')[source]

Creates a node adjacency matrix from a Network datastructure.

Parameters:
rtypeLiteral[‘array’, ‘csc’, ‘csr’, ‘coo’, ‘list’], optional

Format of the result.

Returns:
array_like

Constructed adjacency matrix.