Skip to content

@graphty/algorithms / index / pathIds

Function: pathIds() ​

pathIds(path, s): NodeId[]

Defined in: indexed/by-id.ts:41

Node indices (a path, a visit order, a set) as node ids, in the same order.

Parameters ​

path ​

ArrayLike<number>

Node indices, such as the return value of pathTo

s ​

GraphSnapshot

The snapshot the indices belong to

Returns ​

NodeId[]

The node ids