pub trait Weight { fn infinity() -> Self; }
A weight-type usable in Dijkstra’s algorithm.
The infinity value of this type.