CellNetwork.network_connectivity_matrix

CellNetwork.network_connectivity_matrix(rtype='array')

Creates a connectivity matrix from a Network datastructure.

Parameters
  • network (compas.datastructures.Network) – Network data structure.

  • rtype (Literal[‘array’, ‘csc’, ‘csr’, ‘coo’, ‘list’], optional) – Format of the result.

Returns

array_like – Constructed connectivity matrix.