SimplexTree.degree

SimplexTree.SimplexTree.degree(vertices=None)

Computes the degree of select vertices in the trie.

Parameters

Name Type Description Default
vertices Optional[ArrayLike] If no vertices are specified, all degrees are computed. Non-existing vertices by default have degree 0. None

Returns

Name Type Description
Union[ArrayLike, int] degree of each vertex id given in ‘vertices’.