Network3gs.network_adjacency_matrix

Network3gs.network_adjacency_matrix(rtype='array')

Creates a node adjacency matrix from a Network datastructure.

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

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

Returns

array_like – Constructed adjacency matrix.