|
| 1 | +var tracer = new DirectedGraphTracer(); |
| 2 | +var logger = new LogTracer(); |
| 3 | +tracer.attach(logger); |
| 4 | +var G = [ // G[i][j] indicates whether the path from the i-th node to the j-th node exists or not |
| 5 | + [0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0], |
| 6 | + [0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0], |
| 7 | + [0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0], |
| 8 | + [0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0], |
| 9 | + [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1], |
| 10 | + [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
| 11 | + [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
| 12 | + [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
| 13 | + [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
| 14 | + [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
| 15 | + [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] |
| 16 | +]; |
| 17 | +tracer._setTreeData(G, 0); |
0 commit comments