import type { Graph } from "./types"; /** * A graph for connecting any kind of JavaScript object by making use of the * native `Map` and `Set` primitives. * * Much like a ES6 Map or Set, this graph type guarantees that insertion order * is preserved for vertices. For example, if you add node A after B, * `getVertices()` will always retun `['B', 'A']`. */ export declare class DirectedHashGraph implements Graph { private nodes; private sourceToTarget; private targetToSource; edgeCount: number; constructor(iterable?: Iterable<[V, V]>); get vertexCount(): number; hasEdge(a: V, b: V): boolean; addEdge(source: V, target: V): void; deleteEdge(a: V, b: V): void; deleteVertex(node: V): void; getSourceVertices(node: V): Iterable; getTargetVertices(node: V): Iterable; getVertices(): Iterable; addVertex(v: V): void; hasVertex(v: V): boolean; getEdges(): Iterable<[V, V]>; } //# sourceMappingURL=DirectedHashGraph.d.ts.map