Struct traitgraph::algo::dijkstra::EpochNodeWeightArray[][src]

pub struct EpochNodeWeightArray<WeightType> { /* fields omitted */ }
Expand description

An epoched node weight array that can be cleared in O(1) most of the times. Only if the epoch in the epoch array overflows, clearing takes linear time.

Trait Implementations

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.