graphtransliterator-ts / childrenOfType
Function: childrenOfType()
childrenOfType<
T,N,E>(graph,parentId,nodeType):number[]
Defined in: Graphs.ts:201
Filters the downstream child array elements from a parent, selecting entries that match an explicit structural type discriminant.
Type Parameters
T
T
N
N
E
E
Parameters
graph
DirectedGraph<T, N, E>
parentId
number
nodeType
T
Returns
number[]