pub fn edges_out(&self, index: usize) -> Result<Vec<&E>> {
        self.successors
            .get(&index)
            .map(|succs| {
                succs
                    .iter()
                    .map(|succ| &self.edges[&(index, *succ)])
                    .collect()
            })
            .ok_or_else(|| ErrorKind::GraphVertexNotFound(index).into())
    }
/// Return all edges out for a vertex
Return all edges out for a vertex
Return all edges out for a vertex
pub fn edges_out(&self, index: usize) -> Result<Vec<&E>> {
        self.successors
            .get(&index)
            .map(|succs| {
                succs
                    .iter()
                    .map(|succ| &self.edges[&(index, *succ)])
                    .collect()
            })
            .ok_or_else(|| ErrorKind::GraphVertexNotFound(index).into())
    }
pub fn edges_out ( & self , index : usize ) -> Result < Vec < & E > > { self . successors . get ( & index ) . map ( | succs | { succs . iter ( ) . map ( | succ | & self . edges [ & ( index , * succ ) ] ) . collect ( ) } ) . ok_or_else ( | | ErrorKind :: GraphVertexNotFound ( index ) . into ( ) ) }
Return all edges out for a vertex
Return all edges out for a vertex
&self
index
usize
&self
index
usize