Skip to main content

Home > @jsplumbtoolkit/core > JsPlumbToolkit > getClusters

JsPlumbToolkit.getClusters() method#

Calculates "clusters" of nodes (and groups), where a 'cluster' is a set of Nodes/Groups that are connected. Direction of connections is not taken into account. Nodes that are children of Groups are included in all cluster calculations, which might cause some weird situations, but this functionality is mostly intended just for Nodes anyway.


getClusters(): Array<Cluster>;



An array of arrays, each entry being a list of nodes in the cluster.