petgraph::adj

Type Alias NodeIndex

Source
pub type NodeIndex<Ix = DefaultIx> = Ix;
Expand description

Adjacency list node index type, a plain integer.

Trait Implementations§

Source§

impl<Ix: IndexType> NodeRef for NodeIndex<Ix>

Source§

type NodeId = Ix

Source§

type Weight = ()

Source§

fn id(&self) -> Self::NodeId

Source§

fn weight(&self) -> &Self::Weight