pub trait BfsExpander<const EXPANSION_NODES: usize> {
// Required method
fn expand(&mut self, node: u64, expanded_nodes: &mut [u64; EXPANSION_NODES]);
}Expand description
Defines the graph that the BFS will traverse.
Required Methods§
Sourcefn expand(&mut self, node: u64, expanded_nodes: &mut [u64; EXPANSION_NODES])
fn expand(&mut self, node: u64, expanded_nodes: &mut [u64; EXPANSION_NODES])
Given a node node of the graph, populates expanded_nodes with the adjacent nodes in the
graph.