public SprintsController(IPersistenceService persistenceService, ICapacityCalculator capacityCalculator) { this.persistenceService = persistenceService; this.capacityCalculator = capacityCalculator; }
/// <summary> /// Initializes a new instance of the <see cref="EdmondsKarpMaximumFlowAlgorithm{TGraph,TVertexId,TEdgeId,TCapacity}"/> class with the graph end the necessary basic calculations. /// </summary> /// <param name="graph">The graph to compute maximum flow in.</param> /// <param name="calculator">The basic methods used to initialize, add, negate and compare capacity and flow.</param> public EdmondsKarpMaximumFlowAlgorithm(TGraph graph, ICapacityCalculator <TCapacity> calculator) { this._graph = graph; this._calculator = calculator; }