What about a solver class, something like `MaximumFlowSolver`? Although a prevalent style, there are precedents such as `GraphMatcher`.