View on GitHub

Ford-fulkerson-algorithm-simulator

Download this project as a .zip file Download this project as a tar.gz file

Welcome to Ford-Fulkerson algorithm simulator!

This is Java application which shows step by step how Ford-Fulkerson algorithm works. Ford-Fulkerson algorithm is used to compute maximal flow network.

Demo

Instructions

To start algorithm select file->open and navigate to configuration

Configuration file describes flow network as folows:

For example, simple network can be described as:

    1, 2, 3, u
    1, 3, 3, u
    2, 4, 2, u
    2, 5, 3, u
    3, 6, 2, u
    6, 7, 3, u
    3, 6, 4, u
    3, 7, 2, u

Some other examples to try: Examples

When flow network is loaded, next step is to select source and sink nodes by clicking on them. To start simulation click "start algorithm" button. Button is than replaced with "next step" button which allows you to track changes in network after each step. When algorithm is finished, next step button will be disabled and result in form of maximal flow will be shown.