1 2 3 4 5 6 7 8 9 10 11
#[derive(Debug, PartialEq)] pub(crate) struct AdjacentNode { pub node_index: usize, pub weight: f64, } impl AdjacentNode { pub fn new(node_index: usize, weight: f64) -> Self { AdjacentNode { node_index, weight } } }