コード例 #1
0
 public EdmondsKarpMaximumFlowAlgorithm EdmundsKarp()
 {
     EdmondsKarpMaximumFlowAlgorithm maxFlow = new EdmondsKarpMaximumFlowAlgorithm(
         Graph,
         Capacities,
         ReversedEdges
         );
     return maxFlow;
 }
コード例 #2
0
        private void InitializeGraph()
        {
            GenerateActivityGraph();

            _flowAgorithm =
                new EdmondsKarpMaximumFlowAlgorithm<int, Edge<int>>(
                    _graph,
                    CalculateActivitySuccessorCapacity,
                    CreateAdditionalEdgeFactory);
        }