Dependency Graph
This is a rust library to perform iterative operations over dependency graphs.
Usage
[]
= "0.2"
This library supports both sequential and parallel (multi-threaded) operations out of the box. By default, multi-threaded operations will run a number of threads equal to the number of cores.
Parallel operations
Here is a simple example on how to use this library:
use ;
use *;
// Create a list of nodes
let mut root = new;
let mut dep1 = new;
let mut dep2 = new;
let leaf = new;
// Map their connections
root.add_dep;
root.add_dep;
dep1.add_dep;
dep2.add_dep;
// Create a graph
let nodes = vec!;
// Print the name of all nodes in the dependency graph.
// This will parse the dependency graph sequentially
// This is the same as the previous command, excepts it leverages rayon
// to process them in parallel as much as possible.