network_adjacency_matrix

compas.datastructures.network_adjacency_matrix(network, rtype='array')[source]

Creates a node adjacency matrix from a Network datastructure.

Parameters:
networkobj

Network datastructure object to get data from.

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

Format of the result.

Returns:
array_like

Constructed adjacency matrix.