viz.renderers.GraphEdge
export interface GraphEdge {
/** Source node ID */
source: string;
/** Target node ID */
target: string;
/** Edge weight (default: 1) */
weight?: number;
/** Edge label */
label?: string;
/** Custom color [r, g, b] */
color?: [number, number, number];
/** Additional data */
data?: Record<string, unknown>;
}source(string)- – Source node ID
target(string)- – Target node ID
weight(number)optional- – Edge weight (default: 1)
label(string)optional- – Edge label
color([number, number, number])optional- – Custom color [r, g, b]
data(Record<string, unknown>)optional- – Additional data
An edge in the network graph.