1 | export interface GraphOptions {
|
2 | directed?: boolean;
|
3 | multigraph?: boolean;
|
4 | compound?: boolean;
|
5 | }
|
6 | export interface Edge {
|
7 | v: string;
|
8 | w: string;
|
9 |
|
10 | name?: string;
|
11 | }
|
12 | export declare class Graph {
|
13 | _isDirected: any;
|
14 | _isMultigraph: any;
|
15 | _isCompound: any;
|
16 | _label: any;
|
17 | _defaultNodeLabelFn: any;
|
18 | _defaultEdgeLabelFn: any;
|
19 | _nodes: {
|
20 | [key: string]: unknown;
|
21 | };
|
22 | _parent: any;
|
23 | _children: any;
|
24 | _in: any;
|
25 | _preds: any;
|
26 | _out: any;
|
27 | _sucs: any;
|
28 | _edgeObjs: any;
|
29 | _edgeLabels: {
|
30 | [key: string]: unknown;
|
31 | };
|
32 | constructor(opts: GraphOptions);
|
33 | _nodeCount: number;
|
34 | _edgeCount: number;
|
35 | isDirected(): any;
|
36 | isMultigraph(): any;
|
37 | isCompound(): any;
|
38 | setGraph(label: any): this;
|
39 | graph(): any;
|
40 | setDefaultNodeLabel(newDefault: any): this;
|
41 | nodeCount(): number;
|
42 | nodes(): any;
|
43 | sources(): any;
|
44 | sinks(): any;
|
45 | setNodes(vs: any, value: any): this;
|
46 | setNode(v: any, value?: any): this;
|
47 | node(v: any): unknown;
|
48 | hasNode(v: string): boolean;
|
49 | removeNode(v: any): this;
|
50 | setParent(v: any, parent?: any): this;
|
51 | _removeFromParentsChildList(v: any): void;
|
52 | parent(v: any): any;
|
53 | children(v: any): any;
|
54 | predecessors(v: any): any;
|
55 | successors(v: any): any;
|
56 | neighbors(v: any): any;
|
57 | isLeaf(v: any): boolean;
|
58 | filterNodes(filter: any): Graph;
|
59 | setDefaultEdgeLabel(newDefault: any): this;
|
60 | edgeCount(): number;
|
61 | edges(): any;
|
62 | setPath(vs: any, value: any): this;
|
63 | setEdge(v: string, w: string, label?: any, name?: string): Graph;
|
64 | setEdge(edge: Edge, label?: any): Graph;
|
65 | edge(v: any, w?: any, name?: any): unknown;
|
66 | hasEdge(v: any, w: any, name: any): boolean;
|
67 | removeEdge(v: any, w?: any, name?: any): this;
|
68 | inEdges(v: any, u: any): any;
|
69 | outEdges(v: any, w: any): any;
|
70 | nodeEdges(v: any, w: any): any;
|
71 | }
|