@itwin/ecschema-metadata
Version:
ECObjects core concepts in typescript
35 lines • 877 B
TypeScript
/** @internal */
export declare class Graph<T> {
private _edgeKeyDelim;
private _label;
private _nodeCount;
private _edgeCount;
private _nodes;
private _edgeObjs;
private _edgeLabels;
private _outEdges;
constructor();
setGraph: (label: string) => Graph<T>;
graph: () => string;
nodeCount: () => number;
nodes: () => string[];
setNode: (nodeKey: string, nodeValue: T) => void;
node: (nodeKey: string) => T;
hasNode: (nodeKey: string) => boolean;
edgeCount: () => number;
edges: () => {
v: string;
w: string;
}[];
setEdge: (v: string, w: string, value: {
exponent: number;
}) => void;
edge: (v: string, w: string) => {
exponent: number;
};
outEdges: (v: string) => {
v: string;
w: string;
}[];
}
//# sourceMappingURL=Graph.d.ts.map