Skip to content

Commit

Permalink
fix test util
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHung committed Nov 3, 2023
1 parent a7116ce commit 11dd3a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/testUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ export function graphEdgesCount<T>(graph: Graph<T>): number {
}

export function graphReversedAdjacentNodes<T>(graph: Graph<T>, node: T): T[] {
const id = (graph as any).nodesIds.get(node) as string | number
const id = (graph as any).nodesIds.get(node) as number

return Array.from((graph as any).nodes.keys()).reduce((acc: any[], sourceId: any) =>
graph.existsEdge(sourceId, id)
Expand Down

0 comments on commit 11dd3a0

Please sign in to comment.