(findPath)
| 12 | } |
| 13 | |
| 14 | function time(findPath) { |
| 15 | let graph = treeGraph(6, 6); |
| 16 | let startTime = Date.now(); |
| 17 | let result = findPath(graph[0], graph[graph.length - 1]); |
| 18 | console.log(`Path with length ${result.length} found in ${Date.now() - startTime}ms`); |
| 19 | } |
| 20 | time(findPath); |
no test coverage detected