@@ -21,13 +21,19 @@ import * as Instructions from './instructions';
2121 algorithm is deployed. Note that the DEFAULT_ALGORITHM from
2222 src/context/actions.js had better be deployed!
2323 XXX Design of noDeploy stuff was done with the aim of minimal code change
24- and could be re-thought when there are fewer merges going on.
24+ and should be re-thought when there are fewer merges going on.
2525XXX This has now been totally ****ed up, with multiple lists of
2626algorithms elsewhere (see components/mainmenu/index.js
27- components/mainmenu/GraphAlgorithms.js components/AlgorithmMenu.js) as
27+ components/mainmenu/GraphAlgorithms.js etc components/AlgorithmMenu.js) as
2828well as this file, algorithms/index.js. There should be *one* master
2929list (eg, this one, possibly with extra info for each algorithm) and the
3030other lists should be generated from the master list!
31+ Currently with noDeploy=true the algorithm can still be found via the
32+ search function but it then says "Invalid algorithm specified" - see
33+ algorithms/parameters/helpers/urlHelpers.js (XXX that file could use
34+ allalgs instead??)
35+ Now that we can access algorithms via the URL we should be able to use
36+ this mechanism for acess to "hidden" algorithms
3137
3238 Each imported algorithm is expected to be an object of the form:
3339 { pseudocode: String, explanation: String, run: Function }
@@ -372,7 +378,7 @@ const allalgs = {
372378 // Prim's (simpler code) is superseeded + could do with some work;
373379 // it's included here so it can be run but it's not included in menus
374380 'prim_old' : {
375- noDeploy : true ,
381+ // noDeploy: true,
376382 name : 'Prim\'s (simpler code)' ,
377383 category : 'Graph' ,
378384 explanation : Explanation . Prims_oldExp ,
0 commit comments