Welcome to this Operations Research project dedicated to the implementation and visualization of the Ford-Fulkerson algorithm for finding the maximum flow in a directed graph.
RO/
├── RO-Service/ # Backend Flask (Ford-Fulkerson algorithm)
└── RO-Visualisation/ # Frontend React + Vite (visualization interface)The goal is to provide an educational and interactive tool to:
- Simulate flow graphs (capacities, source, sink)
- Run the Ford-Fulkerson algorithm step by step
- Dynamically visualize augmenting paths, flows, and cuts
This project is particularly useful for courses in operations research, algorithms, or applied mathematics.
📍 Folder:
RO/RO-Service
- Python 3.8+
virtualenvorvenv
cd RO-Service
python3 -m venv venv
source venv/bin/activate # Windows : env\Scripts\activate
pip install flask flask-cors
# Start the server
python run.pyBy default, the backend runs at: http://localhost:4321/api/
📍 Folder:
RO/RO-Visualisation
Create a .env file at the root of RO-Visualisation:
VITE_API_BASE_URL=http://localhost:4321/api/Replace the URL if your backend runs on another network/IP.
cd RO-Visualisation
yarn
yarn devBy default, the frontend is accessible at: http://localhost:5173/
The Ford-Fulkerson algorithm aims to maximize the flow between a source node and a sink node in a directed graph using augmenting paths.
The algorithm is based on the idea of traversing the graph to find paths with positive residual capacities, and increasing the flow along these paths until none can be found.
This project is open-source under the MIT license.
@wharton-git