Maximum flow is one of the Network Optimization problems in Operations Research and can be solved in R by “igraph“, which is a network analysis package.
6.2 A CASE STUDY: THE BMZ CO. MAXIMUM FLOW PROBLEM
The function to solve maximum flow problem in igraph package is called max_flow.
Usage:
max_flow(graph, source, target, capacity = NULL)