Type Alias petgraph::graph::DefaultIx

source ·
pub type DefaultIx = u32;
Expand description

The default integer type for graph indices. u32 is the default to reduce the size of the graph’s data and improve performance in the common case.

Used for node and edge indices in Graph and StableGraph, used for node indices in Csr.

Trait Implementations§

source§

impl BoundedMeasure for u32

source§

fn min() -> Self

source§

fn max() -> Self

source§

fn overflowing_add(self, rhs: Self) -> (Self, bool)

source§

impl IndexType for u32

source§

fn new(x: usize) -> Self

source§

fn index(&self) -> usize

source§

fn max() -> Self

source§

impl Zero for u32

source§

fn zero() -> Self

Return the singleton object which can be used as a sentinel value.
source§

fn is_zero(&self) -> bool

Return true if self is equal to the sentinel value.