@@ -21,13 +21,19 @@ import * as Instructions from './instructions';
21
21
algorithm is deployed. Note that the DEFAULT_ALGORITHM from
22
22
src/context/actions.js had better be deployed!
23
23
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.
25
25
XXX This has now been totally ****ed up, with multiple lists of
26
26
algorithms 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
28
28
well as this file, algorithms/index.js. There should be *one* master
29
29
list (eg, this one, possibly with extra info for each algorithm) and the
30
30
other 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
31
37
32
38
Each imported algorithm is expected to be an object of the form:
33
39
{ pseudocode: String, explanation: String, run: Function }
@@ -372,7 +378,7 @@ const allalgs = {
372
378
// Prim's (simpler code) is superseeded + could do with some work;
373
379
// it's included here so it can be run but it's not included in menus
374
380
'prim_old' : {
375
- noDeploy : true ,
381
+ // noDeploy: true,
376
382
name : 'Prim\'s (simpler code)' ,
377
383
category : 'Graph' ,
378
384
explanation : Explanation . Prims_oldExp ,
0 commit comments