Edge connecting graph nodes

interface GraphEdge {
    directed?: boolean;
    id?: string;
    source: string;
    target: string;
    weight?: number;
}

Properties

directed?: boolean

Directed edge (arrow)

id?: string

Optional edge identifier

source: string

Source node ID

target: string

Target node ID

weight?: number

Edge weight/strength