Neo4j Visualization Library
    Preparing search index...

    Interface HierarchicalOptions

    The options for the hierarchical layout

    interface HierarchicalOptions {
        clusterBy?: ClusterByFn;
        direction?: "up" | "down" | "left" | "right";
        packing?: "bin" | "stack";
    }
    Index
    clusterBy?: ClusterByFn

    Optional 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.

    direction?: "up" | "down" | "left" | "right"

    The direction in which the layout should be oriented

    packing?: "bin" | "stack"

    The packing method to be used