Add a neighbor type in algo local vars.
Also add the list of neighbors to the init function. The rationale is that to give a sensible initial value to local vars of type 'Neighbor', we need the neighbors number. I could have chosen to pass an integer only. Well, who can the plus can the minus.
Showing
- bin/process.ml 19 additions, 14 deletionsbin/process.ml
- bin/process.mli 2 additions, 2 deletionsbin/process.mli
- bin/sasa.ml 17 additions, 27 deletionsbin/sasa.ml
- bin/stringOf.ml 1 addition, 0 deletionsbin/stringOf.ml
- doc/README.md 25 additions, 9 deletionsdoc/README.md
- doc/README.org 21 additions, 1 deletiondoc/README.org
- lib/algo/algo.ml 42 additions, 23 deletionslib/algo/algo.ml
- lib/algo/algo.mli 5 additions, 4 deletionslib/algo/algo.mli
- test/Makefile 2 additions, 0 deletionstest/Makefile
- test/Makefile.inc 2 additions, 2 deletionstest/Makefile.inc
- test/bfs-spanning-tree/Makefile 4 additions, 1 deletiontest/bfs-spanning-tree/Makefile
- test/bfs-spanning-tree/fig5.1-noinit.dot 14 additions, 0 deletionstest/bfs-spanning-tree/fig5.1-noinit.dot
- test/bfs-spanning-tree/p.ml 34 additions, 25 deletionstest/bfs-spanning-tree/p.ml
- test/bfs-spanning-tree/root.ml 10 additions, 5 deletionstest/bfs-spanning-tree/root.ml
- test/coloring/p.ml 10 additions, 6 deletionstest/coloring/p.ml
- test/dijkstra-ring/ring.ml 14 additions, 14 deletionstest/dijkstra-ring/ring.ml
- test/dijkstra-ring/ringroot.ml 15 additions, 13 deletionstest/dijkstra-ring/ringroot.ml
- test/unison/unison.ml 10 additions, 7 deletionstest/unison/unison.ml
Loading
Please register or sign in to comment