dependency-graph
dependency-graph copied to clipboard
A simple dependency graph for Node.js
When the `circular` property was added to allow cycles (by https://github.com/jriecken/dependency-graph/pull/21) , `clone` was not updated to also copy the property to the new `DepGraph` instance.
#27 ``` var { DepGraph } = require("./lib/dep_graph"); var tree = new DepGraph(); tree.addNode('a'); tree.addNode('b'); tree.addNode('c'); tree.addNode('d'); tree.addNode('e'); tree.addNode('f'); tree.addNode('g'); tree.addDependency('a', 'b'); tree.addDependency('a', 'c'); tree.addDependency('c', 'd'); tree.addDependency('d', 'e'); tree.addDependency('d', 'f');...
Having level dependency level would be really to have: - `numberOfLevel()` to expose how many level of dependency there are (`3 levels if a -> b -> c`, or `2...
Hello, In my use case I construct a graph to validate a user input. When the input changes I modify the graph accordingly. One of the validations is to check...
Are there any suggestions on how to implement these two helpers? ```js const graph = new DepGraph() // adding nodes a, b, c, d, etc const serializedGraph: Record = serialize(graph)...