Skip to content

Commit 3df049b

Browse files
committed
simplify data of bfs/shortest_path
1 parent f635cdc commit 3df049b

File tree

1 file changed

+1
-8
lines changed
  • algorithm/graph_search/bfs/shortest_path

1 file changed

+1
-8
lines changed
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
var tracer = new WeightedDirectedGraphTracer();
22
var logger = new LogTracer();
33
tracer.attach(logger);
4-
/*var G = [ // G[i][j] indicates the weight of the path from the i-th node to the j-th node
5-
[0, 3, 0, 1, 0],
6-
[5, 0, 1, 2, 4],
7-
[1, 0, 0, 2, 0],
8-
[0, 2, 0, 0, 1],
9-
[0, 1, 3, 0, 0]
10-
];*/
11-
var G = WeightedDirectedGraph.random(10, .3, 1, 9);
4+
var G = WeightedDirectedGraph.random(5, 1, 1, 9);
125
tracer._setData(G);

0 commit comments

Comments
 (0)