Add a node to the dependency graph. If a node already exists, this method will do nothing.
get an array containing the nodes that depend on the specified node (transitively).
Throws an Error if the graph has a cycle, or the specified node does not exist.
If leavesOnly
is true, only nodes that do not have any dependants will be returned in the array.
Get an array containing the nodes that the specified node depends on (transitively).
Throws an Error if the graph has a cycle, or the specified node does not exist.
If leavesOnly
is true, only nodes that do not depend on any other nodes will be returned
in the array.
Get the data associated with a node name
Check if a node exists in the graph
Construct the overall processing order for the dependency graph.
Throws an Error if the graph has a cycle.
If leavesOnly
is true, only nodes that do not depend on any other nodes will be returned.
Remove a dependency between two nodes.
Remove a node from the dependency graph. If a node does not exist, this method will do nothing.
Set the associated data for a given node name. If the node does not exist, this method will throw an error
Generated using TypeDoc
Add a dependency between two nodes. If either of the nodes does not exist, an Error will be thrown.