mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-02-16 02:30:51 +00:00
Change script location.
Split js code. Added cache and changed loading mechanism for js sources.
This commit is contained in:
35
script/features/algorithms/api/index.js
Normal file
35
script/features/algorithms/api/index.js
Normal file
@@ -0,0 +1,35 @@
|
||||
{
|
||||
let modulDir = "features/algorithms/";
|
||||
|
||||
doInclude ([
|
||||
include ("model/Algorithms.js", modulDir),
|
||||
include ("model/BaseTraversal.js", modulDir)
|
||||
])
|
||||
|
||||
function loadAsyncAlgorithms(onFinish) {
|
||||
let pluginsList = ["BFS.js",
|
||||
"Coloring.js",
|
||||
"ConnectedComponent.js",
|
||||
"DFS.js",
|
||||
"EulerianLoop.js",
|
||||
"EulerianPath.js",
|
||||
"FindAllPatches.js",
|
||||
"FindLongestPath.js",
|
||||
"FindShortPatchsFromOne.js",
|
||||
"Floid.js",
|
||||
"GraphReorder.js",
|
||||
"HamiltonianLoop.js",
|
||||
"HamiltonianPath.js",
|
||||
"IsomorphismCheck.js",
|
||||
"MaxClique.js",
|
||||
"MaxFlow.js",
|
||||
"MinimumSpanningTree.js",
|
||||
"ModernGraphStyle.js",
|
||||
"RadiusAndDiameter.js",
|
||||
"ShortestPath.js",
|
||||
"VerticesDegree.js"];
|
||||
|
||||
doIncludeAsync (pluginsList.map((plugin) => include ("model/plugins/" + plugin, modulDir)), onFinish);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user