- Go backend (server/)
- Frontend (web/, server/static/)
- Database and deployment files
- Scripts and docs
Co-Authored-By: 狸花猫/Claude-Qwen3.6-Plus 🐾
11 lines
262 B
JavaScript
11 lines
262 B
JavaScript
var dijkstra = require("./dijkstra");
|
|
var _ = require("../lodash");
|
|
|
|
module.exports = dijkstraAll;
|
|
|
|
function dijkstraAll(g, weightFunc, edgeFunc) {
|
|
return _.transform(g.nodes(), function(acc, v) {
|
|
acc[v] = dijkstra(g, v, weightFunc, edgeFunc);
|
|
}, {});
|
|
}
|