pub fn peel<G>(graph: &G, node: NodeId) -> Result<Option<NodeId>>where
G: SwhLabeledForwardGraph + SwhGraphWithProperties,
<G as SwhGraphWithProperties>::LabelNames: LabelNames,
<G as SwhGraphWithProperties>::Maps: Maps,Expand description
Recursively peel a node until a node of a different type is reached.
This is analogous to libgit2’s
git_object_peel
with GIT_OBJECT_ANY.
See peel_once for peeling rules.
Returns Ok(Some(node_id)) on success, where node_id is the peel result, Ok(None) if no
suitable successor exists (e.g., a root revision with no directory successor).