Struct stack_graphs::partial::PartialPaths [−][src]
pub struct PartialPaths { /* fields omitted */ }
Expand description
Manages the state of a collection of partial paths built up as part of the partial-path-finding algorithm or path-stitching algorithm.
Implementations
pub fn find_all_partial_paths_in_file<F>(
&mut self,
graph: &StackGraph,
file: Handle<File>,
visit: F
) where
F: FnMut(&StackGraph, &mut PartialPaths, PartialPath),
pub fn find_all_partial_paths_in_file<F>(
&mut self,
graph: &StackGraph,
file: Handle<File>,
visit: F
) where
F: FnMut(&StackGraph, &mut PartialPaths, PartialPath),
Finds all partial paths in a file, calling the visit
closure for each one.
This function will not return until all reachable partial paths have been processed, so
graph
must already contain a complete stack graph. If you have a very large stack graph
stored in some other storage system, and want more control over lazily loading only the
necessary pieces, then you should code up your own loop that calls
PartialPath::extend
manually.