JavaScript:实现Dijkstra最小路径算法 // starting at s function solve (graph, s) { const solutions = { } solutions[s] = [