pub fn predecessor_indices(&self, index: usize) -> Result<Vec<usize>> {
        if !self.vertices.contains_key(&index) {
            bail!(
                "Vertex {} does not exist and therefor has no predecessors",
                index
            );
        }

        Ok(self.predecessors[&index].iter().cloned().collect())
    }
/// Returns the indices of all immediate predecessors of a vertex from the graph.
Returns the indices of all immediate predecessors of a vertex from the graph.
Returns the indices of all immediate predecessors of a vertex from the graph .
pub fn predecessor_indices(&self, index: usize) -> Result<Vec<usize>> {
        if !self.vertices.contains_key(&index) {
            bail!(
                "Vertex {} does not exist and therefor has no predecessors",
                index
            );
        }
        Ok(self.predecessors[&index].iter().cloned().collect())
    }
pub fn predecessor_indices ( & self , index : usize ) -> Result < Vec < usize > > { if ! self . vertices . contains_key ( & index ) { bail ! ( " " index ) ; } Ok ( self . predecessors [ & index ] . iter ( ) . cloned ( ) . collect ( ) ) }
Returns the indices of all immediate predecessors of a vertex from the graph.
Returns the indices of all immediate predecessors of a vertex from the graph .
&self
index
usize
&self
index
usize