pub trait NodeWeightArray<WeightType> {
    fn new(size: usize) -> Self;
    fn get(&self, node_index: usize) -> WeightType;
    fn get_mut<'this: 'result, 'result>(
        &'this mut self,
        node_index: usize
    ) -> &'result mut WeightType; fn set(&mut self, node_index: usize, weight: WeightType); fn clear(&mut self); }
Expand description

An array to store minimal node weights for Dijkstra’s algorithm.

Required Methods

Create a new NodeWeightArray of given size.

Returns the current weight of the given node index.

Returns the current weight of the given node index as mutable reference.

Sets the current weight of the given node index.

Resets the weights of all node indices to infinity

Implementations on Foreign Types

Implementors