adjacency_matrix

compas.numerical.adjacency_matrix(adjacency, rtype='array')[source]

Creates a vertex adjacency matrix.

Parameters:
adjacencylist

List of lists, vertex adjacency data.

rtype{‘array’, ‘csc’, ‘csr’, ‘coo’, ‘list’}

Format of the result.

Returns:
array-like

Constructed adjacency matrix.