pub fn cache_friendly_expand( nodes: &[u64], direction: Direction, ) -> Vec<(u64, u64)>
Cache-friendly edge expansion