Optional ExperimentalclusterOptional function to group nodes into semantic clusters based on a custom identifier. Nodes returning the same string or number will be grouped together in the layout via dagre compound subgraphs. Nodes returning undefined will be treated as independent.
No outline or halo is drawn (only present for the 'forceDirected' layout via ClusteringOptions).
Ensure this function has a stable reference to avoid evaluation on every render.
OptionaldirectionThe direction in which the layout should be oriented
OptionalpackingThe packing method to be used
The options for the hierarchical layout