pub fn vertex(&self, index: usize) -> Result<&V> {
        self.vertices
            .get(&index)
            .ok_or_else(|| ErrorKind::GraphVertexNotFound(index).into())
    }
/// Fetches an index from the graph by index.
Fetches an index from the graph by index.
Fetches an index from the graph by index .
pub fn vertex(&self, index: usize) -> Result<&V> {
        self.vertices
            .get(&index)
            .ok_or_else(|| ErrorKind::GraphVertexNotFound(index).into())
    }
pub fn vertex ( & self , index : usize ) -> Result < & V > { self . vertices . get ( & index ) . ok_or_else ( | | ErrorKind :: GraphVertexNotFound ( index ) . into ( ) ) }
Fetches an index from the graph by index.
Fetches an index from the graph by index .
&self
index
usize
&self
index
usize