Python code from scratch for taking a bipartite graph, reducing it to a max flow graph and finding the maximum flow for the graph.
Make sure that you're using networkx==1.9
. See requirements.
Bipartite Graph -> Directed Flow Network -> Maximum Flow
- Reduce the Bipartite Graph to a Directed Flow Network by adding a source and a sink and introduce capacity to each.
- Use the Ford Fulkerson method and Breadth For Search to find augmenting paths and calculate the residual graph.
- Using the residual graph, calculate the Maximum Flow for the original graph.
- This was a home work assignment for CSORW4246, an Algorithms course at Columbia.