pub fn edges_in(&self, index: usize) -> Result<Vec<&E>> {
        self.predecessors
            .get(&index)
            .map(|preds| {
                preds
                    .iter()
                    .map(|pred| &self.edges[&(*pred, index)])
                    .collect()
            })
            .ok_or_else(|| ErrorKind::GraphVertexNotFound(index).into())
    }
/// Return all edges in for a vertex
Return all edges in for a vertex
Return all edges in for a vertex
pub fn edges_in(&self, index: usize) -> Result<Vec<&E>> {
        self.predecessors
            .get(&index)
            .map(|preds| {
                preds
                    .iter()
                    .map(|pred| &self.edges[&(*pred, index)])
                    .collect()
            })
            .ok_or_else(|| ErrorKind::GraphVertexNotFound(index).into())
    }
pub fn edges_in ( & self , index : usize ) -> Result < Vec < & E > > { self . predecessors . get ( & index ) . map ( | preds | { preds . iter ( ) . map ( | pred | & self . edges [ & ( * pred , index ) ] ) . collect ( ) } ) . ok_or_else ( | | ErrorKind :: GraphVertexNotFound ( index ) . into ( ) ) }
Return all edges in for a vertex
Return all edges in for a vertex
&self
index
usize
&self
index
usize