コード例 #1
0
        private void MaxFlowButton_Click(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("Do Not Close The Window Of Solution to solve Many Graph");
            max = new MaxFlow(VerticsNum, graph_matrix);

            maxFlowform = new MaxFlowViewer(max);
            printGraph(max.basicGraph, max.numberOfVertics, maxFlowform);
        }
コード例 #2
0
        public MaxFlowViewer(MaxFlow max)
        {
            InitializeComponent();

            augmentedPath = true;
            residualGraph = false;
            final         = false;

            this.maxFlow = new MaxFlow(max.numberOfVertics, max.basicGraph);
        }