paminco
Map labels in nodes to node indices.
Node labels to map to node indices.
Whether to vectorize over nodes (must be ndarray). Better performance for larger arrays.
nodes
Node indices.
int : If nodes is str.
int
ndarray : If nodes is ndarray and vectorize is True.
ndarray
list of int : else.
list of int