Skip to content

Commit 22aa941

Browse files
committed
change a bit of bellman_ford
1 parent 85696a3 commit 22aa941

File tree

1 file changed

+7
-1
lines changed
  • algorithm/graph_search/bellman_ford/shortest_path

1 file changed

+7
-1
lines changed
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
var tracer = new WeightedDirectedGraphTracer();
2-
var G = WeightedDirectedGraph.random(5, .5, -5, 5);
2+
var G = [
3+
[0, -1, 4, 0, 0],
4+
[0, 0, 3, 2, 2],
5+
[0, 0, 0, 0, 0],
6+
[0, 1, 5, 0, 0],
7+
[0, 0, 0, -3, 0]
8+
];
39
tracer._setData(G);

0 commit comments

Comments
 (0)