(findPath)
| 1 | function time(findPath) { |
| 2 | let graph = treeGraph(6, 6); |
| 3 | let startTime = Date.now(); |
| 4 | let result = findPath(graph[0], graph[graph.length - 1]); |
| 5 | console.log(`Path with length ${result.length} found in ${Date.now() - startTime}ms`); |
| 6 | } |
| 7 | |
| 8 | function findPath_set(a, b) { |
| 9 | let work = [[a]]; |
no test coverage detected