UNPKG

@pipepack/graph

Version:

A graph data structure with pipepack related algorithm.

17 lines (16 loc) 383 B
export declare type NodeID = string; export declare type EdgeID = string; export declare type EdgeWeight = string; export declare type Adjacents = Set<NodeID>; export interface GraphNode { id: NodeID; } export interface GraphEdge { source: NodeID; target: NodeID; weight?: EdgeWeight; } export interface Serialized { nodes: GraphNode[]; edges: GraphEdge[]; }