OptionalclusterOptional function to group nodes into physical clusters based on a custom identifier. Nodes returning the same string or number will be grouped together in the layout. Nodes returning undefined will be treated as independent.
Optional ExperimentalcrossSpring force multiplier for relationships that cross a ClusteringOptions.clusterBy
cluster boundary.
Capped between 0 and 1.
0 disables cross-cluster spring pull. 1 is full strength. Intra-cluster edges are always
full strength. Only applies when ClusteringOptions.clusterBy is set.
OptionaldrawFills a soft glowing halo around each cluster.
OptionaldrawDraws a convex-hull outline around each cluster.
Options that control physical clustering and cluster decorations for the force-directed layout.