network_connectivity_matrix

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

Creates a connectivity matrix from a Network datastructure.

Parameters
  • network (obj) – Network datastructure object to get data from.

  • rtype ({‘array’, ‘csc’, ‘csr’, ‘coo’, ‘list’}) – Format of the result.

Returns

array-like – Constructed connectivity matrix.