Be the first to rate this file! 45 downloads (last 30 days) File Size: 1.07 KB File ID: #19439

Ford-Fulkerson algorithm

by Bing He

 

02 Apr 2008 (Updated 03 Apr 2008)

No BSD License  

The Ford-Fulkerson algorithm (named for L. R. Ford, Jr. and D. R. Fulkerson) computes the maximum fl

Download Now | Watch this File

File Information
Description

Main function is function max_flow=ff_max_flow(source,sink,capacity,nodes_number).
The graph is expressed as N by N adjacency matrix. N is the number of vertices in the graph, i.e., "nodes_number". "source","sink" are identified by the node ID. "capacity" is an N by N matrix express the edge capacity. "max_flow" is output max flow found.

MATLAB release MATLAB 7.0.1 (R14SP1)
Zip File Content  
Other Files Ford-Fulkerson/bfs_augmentpath.m,
Ford-Fulkerson/ff_max_flow.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
09 Aug 2008 Gok s

Please provide an example

16 Oct 2008 Ahmed Rizk

Please provide an example
Best Regards

08 May 2009 Manar

Please provide an example very quickly

12 May 2009 Mango

just follow the description, first create your matrix from command line, then use the command

max_flow=ff_max_flow(number of sources,number of sinks, matrix name, number of nodes)

it will give you the output max_flow =
                    ?
or just find maximum flow min cut using
http://www.mathworks.com/access/helpdesk/help/toolbox/bioinfo/index.html?/access/helpdesk/help/toolbox/bioinfo/ref/graphmaxflow.html

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
wireless Bing He 22 Oct 2008 09:56:22
maximum flow Bing He 22 Oct 2008 09:56:22
minimum cut Bing He 22 Oct 2008 09:56:23
maxflow mincut Bing He 22 Oct 2008 09:56:23
maxflow mincut Ayman Ahmed 18 Aug 2009 00:33:09
maximum flow Ayman Ahmed 18 Aug 2009 00:33:18
minimum cut Ayman Ahmed 18 Aug 2009 00:33:33
maxflow mincut Ervins Keiss 12 Dec 2009 20:16:55
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com