Skip to content

Commit a197a01

Browse files
committed
Upgrade dependencies
1 parent 283c1f9 commit a197a01

3 files changed

Lines changed: 612 additions & 328 deletions

File tree

index.d.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@ interface Serialized {
1111
}[];
1212
}
1313
declare function Graph(serialized?: Serialized): {
14-
addNode: (node: string) => any;
15-
removeNode: (node: string) => any;
16-
nodes: () => string[];
17-
adjacent: (node: string) => string[];
18-
addEdge: (u: string, v: string, weight: number) => any;
19-
removeEdge: (u: string, v: string) => any;
20-
setEdgeWeight: (u: string, v: string, weight: number) => any;
21-
getEdgeWeight: (u: string, v: string) => number;
22-
indegree: (node: string) => number;
23-
outdegree: (node: string) => number;
14+
addNode: (node: NodeId) => any;
15+
removeNode: (node: NodeId) => any;
16+
nodes: () => NodeId[];
17+
adjacent: (node: NodeId) => NodeId[];
18+
addEdge: (u: NodeId, v: NodeId, weight?: number | undefined) => any;
19+
removeEdge: (u: NodeId, v: NodeId) => any;
20+
setEdgeWeight: (u: NodeId, v: NodeId, weight: EdgeWeight) => any;
21+
getEdgeWeight: (u: NodeId, v: NodeId) => EdgeWeight;
22+
indegree: (node: NodeId) => number;
23+
outdegree: (node: NodeId) => number;
2424
depthFirstSearch: (sourceNodes?: string[] | undefined, includeSourceNodes?: boolean) => string[];
25-
lowestCommonAncestors: (node1: string, node2: string) => string[];
26-
topologicalSort: (sourceNodes: string[], includeSourceNodes?: boolean) => string[];
27-
shortestPath: (source: string, destination: string) => string[] & {
25+
lowestCommonAncestors: (node1: NodeId, node2: NodeId) => string[];
26+
topologicalSort: (sourceNodes: NodeId[], includeSourceNodes?: boolean) => string[];
27+
shortestPath: (source: NodeId, destination: NodeId) => string[] & {
2828
weight?: number | undefined;
2929
};
3030
serialize: () => Serialized;

0 commit comments

Comments
 (0)