difft::diff::graph

Function set_neighbours

Source
pub(crate) fn set_neighbours<'s, 'v>(
    v: &Vertex<'s, 'v>,
    alloc: &'v Bump,
    seen: &mut HashMap<&Vertex<'s, 'v>, SmallVec<[&'v Vertex<'s, 'v>; 2]>, BuildHasherDefault<FxHasher>>,
)
Expand description

Compute the neighbours of v if we haven’t previously done so, and write them to the .neighbours cell inside v.