pub trait DijkstraWeight: Ord + Add<Output = Self> + Sized + Clone {
    fn infinity() -> Self;
fn zero() -> Self; }
Expand description

A weight-type usable in Dijkstra’s algorithm.

Required methods

The infinity value of this type.

The zero value of this type.

Implementations on Foreign Types

Implementors