adjacency_matrix
-
compas.numerical.
adjacency_matrix
(adjacency, rtype='array')[source] Creates a vertex adjacency matrix.
- Parameters
adjacency (list) – List of lists, vertex adjacency data.
rtype ({‘array’, ‘csc’, ‘csr’, ‘coo’, ‘list’}) – Format of the result.
- Returns
array-like – Constructed adjacency matrix.