pub fn find_head_rev<G>(graph: &G, snp: NodeId) -> Result<Option<NodeId>>where
G: SwhLabeledForwardGraph + SwhGraphWithProperties,
<G as SwhGraphWithProperties>::LabelNames: LabelNames,
<G as SwhGraphWithProperties>::Maps: Maps,
Expand description
Given a graph and a snapshot node in it, return the node id of the revision pointed by the HEAD branch, it it exists.