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 85696a3 commit 22aa941Copy full SHA for 22aa941
algorithm/graph_search/bellman_ford/shortest_path/data.js
@@ -1,3 +1,9 @@
1
var tracer = new WeightedDirectedGraphTracer();
2
-var G = WeightedDirectedGraph.random(5, .5, -5, 5);
+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
+];
9
tracer._setData(G);
0 commit comments