-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathedge.d.ts
35 lines (35 loc) · 917 Bytes
/
edge.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
export = Edge;
/**
* @typedef {import('./node')} Node
*/
/**
* An edge connecting two nodes.
*/
declare class Edge {
/**
* Builds an Edge object.
* @param {Node} srcNode - Source node of the edge.
* @param {string} relation - Relationship type of the edge.
* @param {Node} destNode - Destination node of the edge.
* @param {Map} properties - Properties map of the edge.
*/
constructor(srcNode: Node, relation: string, destNode: Node, properties: Map<any, any>);
id: number;
relation: string;
srcNode: import("./node");
destNode: import("./node");
properties: Map<any, any>;
/**
* Sets the edge ID.
* @param {number} id (integer)
*/
setId(id: number): void;
/**
* @returns The string representation of the edge.
*/
toString(): string;
}
declare namespace Edge {
export { Node };
}
type Node = import('./node');