Function petgraph::graph::node_index[][src]

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

Short version of NodeIndex::new