pub fn index(&self, len: usize) -> NodeIndex {
        NodeIndex::new(match *self {
            Self::Absolute(idx) => idx,
            Self::Negative(idx) => len - 1 - idx,
        })
    }
/// Returns the index in the graph that the node reference represents.
/// Requires knowing the number of nodes in the graph.
Returns the index in the graph that the node reference represents.
Requires knowing the number of nodes in the graph.
Returns the index in the graph that the node reference represents . Requires knowing the number of nodes in the graph .
pub fn index(&self, len: usize) -> NodeIndex {
        NodeIndex::new(match *self {
            Self::Absolute(idx) => idx,
            Self::Negative(idx) => len - 1 - idx,
        })
    }
pub fn index ( & self , len : usize ) -> NodeIndex { NodeIndex :: new ( match * self { Self :: Absolute ( idx ) => idx , Self :: Negative ( idx ) => len - 1 - idx , } ) }
Returns the index in the graph that the node reference represents.
Returns the index in the graph that the node reference represents .
&self
len
usize
&self
len
usize