Skip to main content

graph_hops_after_head

Function graph_hops_after_head 

Source
pub fn graph_hops_after_head(
    permutation: IndexPermutation,
    domain_walk: bool,
) -> usize
Expand description

How many encoded terms sit between the walked head’s end and the G term inside a versioned key.

G is always the final component before the commit timestamp; the count follows from the head’s slot index — 1 for domain walks (head at slot 1 of 4), 0 for domain TSG (head at slot 1 of 3, G immediately after), 2 for axis walks (head at slot 0 of 4), 1 for axis TSG.