petgraph::graph

Function node_index

Source
pub fn node_index<Ix: IndexType>(index: usize) -> NodeIndex<Ix>
Expand description

Short version of NodeIndex::new