Skip to main content

ChildVerticesFunction

ChildVerticesFunction<T> = (node, layer, instance) => T[]

Definition of a function that can retrieve child vertices of some vertex, used in the HierarchyLayout. This function can be used to implement layouts that only show a certain subset of the entire dataset, or to implement a collapse/expand scheme.

Type Parameters

T

T extends HasId

Defines the type of the object from which child vertices will be retrieved, and the type of the child vertices.

Parameters

node

T

layer

number

instance

DataSource

Returns

T[]