Function libcnb_package::dependency_graph::create_dependency_graph
source · pub fn create_dependency_graph<T, I, E>(
nodes: Vec<T>
) -> Result<Graph<T, ()>, CreateDependencyGraphError<I, E>>where
T: DependencyNode<I, E>,
I: PartialEq,Expand description
Create a Graph from DependencyNodes.
Errors
Will return an Err if the graph contains references to missing dependencies or the
dependencies of a DependencyNode could not be gathered.