export declare type GraphNode = { key: Key; payload: Payload; adjacents: Map; }; /** * Indirect graph. * Allows multiple edges between a single pair of edges. */ export declare class Graph { readonly nodeMap: Map>; readonly createDefault: (key: Key) => Payload; constructor(createDefault: (key: Key) => Payload); /** * Update key of given node. */ upsert(key: Key, updater: (payload: Payload) => void): void; /** * Connect two edges. * Nodes must have already been inserted to this graph. */ connect(key1: Key, key2: Key): void; /** * Returns an iterator of all nodes. */ entries(): IterableIterator<[Key, GraphNode]>; } //# sourceMappingURL=index.d.ts.map