Hiyve Components - v1.0.0
    Preparing search index...

    Props for NetworkGraph component

    interface NetworkGraphProps {
        colors?: Partial<AgentAssistantColors>;
        data: GraphData;
        height?: number;
        labels?: Partial<AgentAssistantLabels>;
        nodeColors?: Record<string, string>;
        onNodeClick?: (node: GraphNode) => void;
        onNodeExpand?: (node: GraphNode) => Promise<ExpandedGraphResult | null>;
        resolveDisplayName?: (userId: string, defaultName?: string) => string;
        showControls?: boolean;
        showLegend?: boolean;
        sx?: SxProps<Theme>;
    }
    Index

    Properties

    colors?: Partial<AgentAssistantColors>

    Custom colors

    data: GraphData

    Graph data

    height?: number

    Graph height in pixels

    labels?: Partial<AgentAssistantLabels>

    Custom labels

    nodeColors?: Record<string, string>

    Custom node colors by type

    onNodeClick?: (node: GraphNode) => void

    Callback when a node is clicked. Fires regardless of drill-down behavior.

    onNodeExpand?: (node: GraphNode) => Promise<ExpandedGraphResult | null>

    Async drill-down callback. When provided, clicking a node calls this with the node info; the returned graph replaces the view and a breadcrumb is shown so the user can navigate back. If omitted, drill-down is disabled.

    resolveDisplayName?: (userId: string, defaultName?: string) => string

    Resolve a userId (typically an email or cleaned email) to a human display name. Used for person / currentUser node labels and tooltips so the graph shows "Alice" or a student nickname instead of "karlreti_s3@gmail_com". The defaultName is the node's existing label and should be returned if no better resolution is available.

    showControls?: boolean

    Whether to show zoom controls

    showLegend?: boolean

    Whether to show the legend

    sx?: SxProps<Theme>

    MUI sx prop