private void next_button_Click(object sender, EventArgs e)
 {
     if (augmentedPath)
     {
         //حساب الطريق
         if (maxFlow.foundPath())
         {
             //طباعة الطريق
             Step.Text = "Augmented Path";;
             MainWindow.printAugmentedPath(maxFlow.rGraph, maxFlow.numberOfVertics, maxFlow.parent);
             augmentedPath = false;
             residualGraph = true;
         }
         else
         {
             final = true;
         }
     }
     else if ((residualGraph) && (!final))
     {
         //حساب الغراف
         maxFlow.residualGraph();
         //طباعة الغراف
         Step.Text = "Residual Graph\nMin Value Path =" + maxFlow.getPathMinValue();
         MainWindow.printResdualGraph(maxFlow.rGraph, maxFlow.basicGraph, maxFlow.numberOfVertics);
         residualGraph = false;
         augmentedPath = true;
     }
     if (final)
     {
         //لم يعد هناك طريق
         MainWindow.printDirectGraph(maxFlow.rGraph, maxFlow.basicGraph, maxFlow.numberOfVertics);
         MessageBox.Show("Max Flow  =" + maxFlow.getMaxFlow().ToString());
         Step.Text = "Max = " + maxFlow.getMaxFlow().ToString();
     }
 }