SVGnet API Documentation - v0.4.1
    Preparing search index...

    Interface LinkData

    Link/edge data structure connecting two nodes

    interface LinkData {
        id?: string;
        source: string;
        target: string;
        label?: string;
        weight?: number;
        line_type?: "solid" | "dashed" | "dotted";
        color?: string;
        directed?: boolean;
        [key: string]: any;
    }

    Indexable

    • [key: string]: any

      Allow additional custom properties

    Index

    Properties

    id?: string

    Unique identifier for the edge (optional for backward compatibility)

    source: string

    Source node ID

    target: string

    Target node ID

    label?: string

    Optional label for the link

    weight?: number

    Weight/strength of the connection

    line_type?: "solid" | "dashed" | "dotted"

    Visual style of the line

    color?: string

    Color of the edge

    directed?: boolean

    Whether this edge is directed (shows arrowhead). Falls back to GraphConfig.defaultDirected