08-27-周三_17-09-29

This commit is contained in:
2025-08-27 17:10:05 +08:00
commit 86df397d8f
12735 changed files with 1145479 additions and 0 deletions

10
node_modules/graphlibrary/lib/alg/dijkstra-all.js generated vendored Normal file
View File

@@ -0,0 +1,10 @@
const dijkstra = require('./dijkstra')
const _ = require('../lodash')
module.exports = dijkstraAll
function dijkstraAll (g, weightFunc, edgeFunc) {
return _.transform(g.nodes(), function (acc, v) {
acc[v] = dijkstra(g, v, weightFunc, edgeFunc)
}, {})
}