occam-directed-graphs 3.0.33 → 3.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/example.js +378 -867
- package/lib/cycle.js +5 -5
- package/lib/directedAcyclicGraph.js +364 -0
- package/lib/directedGraph.js +12 -38
- package/lib/edge.js +86 -4
- package/lib/example.js +1 -1
- package/lib/index.js +4 -4
- package/lib/partialCycle.js +5 -5
- package/lib/utilities/edge.js +1 -15
- package/lib/utilities/vertex.js +14 -20
- package/lib/vertex.js +405 -0
- package/package.json +2 -4
- package/src/directedAcyclicGraph.js +422 -0
- package/src/directedGraph.js +3 -36
- package/src/edge.js +51 -2
- package/src/utilities/edge.js +0 -21
- package/src/utilities/vertex.js +13 -28
- package/src/vertex.js +359 -0
package/README.md
CHANGED
|
@@ -8,6 +8,7 @@ Directed graphs comprised of directed acyclic graphs together with cycles for [O
|
|
|
8
8
|
- [Installation](#installation)
|
|
9
9
|
- [Usage](#usage)
|
|
10
10
|
- [Building](#building)
|
|
11
|
+
- [References](#references)
|
|
11
12
|
- [Contact](#contact)
|
|
12
13
|
|
|
13
14
|
## Introduction
|
|
@@ -119,6 +120,12 @@ Automation is done with [npm scripts](https://docs.npmjs.com/misc/scripts), have
|
|
|
119
120
|
npm run build-debug
|
|
120
121
|
npm run watch-debug
|
|
121
122
|
|
|
123
|
+
## References
|
|
124
|
+
|
|
125
|
+
This implementation is based on the Pearce-Kelly algorithm:
|
|
126
|
+
|
|
127
|
+
* [A Dynamic Topological Sort Algorithm for Directed Acyclic Graphs](https://www.doc.ic.ac.uk/~phjk/Publications/DynamicTopoSortAlg-JEA-07.pdf) by David J. Pearce and Paul H.J. Kelly.
|
|
128
|
+
|
|
122
129
|
## Contact
|
|
123
130
|
|
|
124
131
|
* james.smith@djalbat.com
|