abhyudaynj / ford-fulkerson-algorithm

Python implemented Ford Fulkerson Algorithm to find max flow with graphical representation.

Repository from Github https://github.comabhyudaynj/ford-fulkerson-algorithmRepository from Github https://github.comabhyudaynj/ford-fulkerson-algorithm

ford-fulkerson-algorithm

Python implemented Ford Fulkerson Algorithm to find maximum flow with graphical representation.

Prerequisites

Input:

    Graph Name = {
      'node': [ False (visited), [ 'node'(edgeNode), capacity, current-flow ] ] }
  # Example
   graph = {
    'A': [False,['B',10,0],['C',10,0]],
    'B': [False,['D',4,0],['E',8,0]],
    'C': [False,['F',9,0]],
    'D': [False,['F',10,0]],
    'E': [False,['D', 6,0],['F',10,0]],
    'F': [False]
    }

Output: Maximum Flow = 19

q q q q q

About

Python implemented Ford Fulkerson Algorithm to find max flow with graphical representation.

License:GNU General Public License v3.0


Languages

Language:Python 100.0%