fn undo_step_quiet(&mut self, step: &SpacialStep) {
        match step {
            SpacialStep::AddedEdge(edge) =>
            {
                self.graph.remove_edge(edge.0, edge.1)
                    .expect("tried to remove non existing edge!");
            },
            SpacialStep::RemovedEdge(edge) => {
                self.graph
                    .add_edge(edge.0, edge.1)
                    .expect("Tried to add existing edge!");
            },
            SpacialStep::Nothing => (),
            SpacialStep::Error => unreachable!("You tried to undo an error! MarcovChain undo_step_quiet")
        }
    }
/// * panics if `step` is error, or cannot be undone
/// The latter means, you are undoing the steps in the wrong order
panics if `step` is error, or cannot be undone
The latter means, you are undoing the steps in the wrong order
panics if ` step ` is error or cannot be undone The latter means you are undoing the steps in the wrong order
fn undo_step_quiet(&mut self, step: &SpacialStep) {
        match step {
            SpacialStep::AddedEdge(edge) =>
            {
                self.graph.remove_edge(edge.0, edge.1)
                    .expect("tried to remove non existing edge!");
            },
            SpacialStep::RemovedEdge(edge) => {
                self.graph
                    .add_edge(edge.0, edge.1)
                    .expect("Tried to add existing edge!");
            },
            SpacialStep::Nothing => (),
            SpacialStep::Error => unreachable!("You tried to undo an error! MarcovChain undo_step_quiet")
        }
    }
fn undo_step_quiet ( & mut self , step : & SpacialStep ) { match step { SpacialStep :: AddedEdge ( edge ) => { self . graph . remove_edge ( edge . 0 , edge . 1 ) . expect ( " " ) ; } , SpacialStep :: RemovedEdge ( edge ) => { self . graph . add_edge ( edge . 0 , edge . 1 ) . expect ( " " ) ; } , SpacialStep :: Nothing => ( ) , SpacialStep :: Error => unreachable ! ( " " ) } }
panics if `step` is error, or cannot be undone
The latter means, you are undoing the steps in the wrong order
panics if ` step ` is error or cannot be undone The latter means you are undoing the steps in the wrong order
&mut self
step
&SpacialStep
&mut self
step
&SpacialStep