We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4501ac2 commit 06ff1ebCopy full SHA for 06ff1eb
Graphs/test/BellmanFordNegativeCycle.test.js
@@ -14,7 +14,7 @@ test('should find shortest distance without negative cycle', () => {
14
const result = bellmanFordNegativeCycle(graph, 4, 0)
15
16
expect(result.hasNegativeCycle).toBe(false)
17
- expect(result.dist[3]).toBe(6) // shortest distance from 0 to 3
+ expect(result.dist[3]).toBe(5) // shortest distance from 0 to 3
18
})
19
20
test('should detect negative cycle', () => {
0 commit comments