//! This module contains a few basic type and constant definitions use std; /// Node ids are unsigned 32 bit integers pub type NodeId = u32; /// Edge ids are unsigned 32 bit integers pub type EdgeId = u32; /// Edge weights are unsigned 32 bit integers pub type Weight = u32; /// The `INFINITY` weight is defined so that the check `INFINITY + INFINITY < INFINITY` does not cause any overflows pub const INFINITY: Weight = std::u32::MAX / 2;