pub struct DijkstraPerformanceCounter {
    pub iterations: u64,
    pub unnecessary_heap_elements: u64,
}
Expand description

A simple performance counter for Dijkstra’s algorithm, keeping all supported counts.

Fields

iterations: u64

The number of iterations of the main loop of Dijkstra’s algorithm.

unnecessary_heap_elements: u64

The number of unnecessary heap elements.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Increment the number of iterations of the main loop of Dijkstra’s algorithm.

Increment the number of heap elements that already have a lower weight than what was stored in the heap. These are wasted cycles because our heap does not support the decrease_key operation. Read more

Get the number of iterations of the main loop of Dijkstra’s algorithm.

Get the number of unnecessary heap elements that were inserted during Dijkstra’s algorithm.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.