Expand description
rose_tree is a rose tree (aka multi-way tree) data structure library.
The most prominent type is RoseTree - a wrapper around petgraph (http://bluss.github.io/petulant-avenger-graphlibrary/doc/petgraph/index.html)’s [Graph] (http://bluss.github.io/petulant-avenger-graphlibrary/doc/petgraph/graph/struct.Graph.html) data structure, exposing a refined API targeted towards rose tree related functionality.
Re-exports§
pub extern crate petgraph;
Structs§
- Node
Index - Node identifier.
- Parent
Recursion - An iterator that yeilds an index to the parent of the current child before the setting the parent as the new current child. This occurs recursively until the root index is yeilded.
- Rose
Tree - An indexable tree data structure with a variable and unbounded number of branches per node.
- Siblings
- An iterator yielding indices to the siblings of some child node.
- Walk
Children - A “walker” object that can be used to step through the children of some parent node.
- Walk
Siblings - A “walker” object that can be used to step through the siblings of some child node.
Constants§
- ROOT
RoseTree
’s API ensures that it always has a “root” node and that its index is always 0.