All Packages Class Hierarchy This Package Previous Next Index
Class tw.edu.ncnu.im.cnclab.Algor.MF_FordFulkerson
java.lang.Object
|
+----tw.edu.ncnu.im.cnclab.Algor.Algorithm
|
+----tw.edu.ncnu.im.cnclab.Algor.MF_FordFulkerson
- public class MF_FordFulkerson
- extends Algorithm
The MF_FordFulkerson class is used to find maximum flow using FordFulkerson method.
Flow edge can be identified as edges with state = FLOW_EDGE
- Version:
- 0.4 Jul 8, 1999
- Author:
- Ding-Yi Chen
-
FLOW_EDGE
- Indicate the edges containes non-zero flow.
-
OTHER
- Indicate the edges does not containes non-zero flow.
-
verts
-
-
MF_FordFulkerson()
- Constructor of algorithm Ford-Fulkerson.
-
algorImpl()
- Implementation of this algorithm.
-
getPreferredDialog(Graph, Frame)
- Preferred dialog: Ask2VertexDialog.
-
setArg(Object[])
- Set arguments from the argument list.
verts
protected int verts
OTHER
public static final Color OTHER
- Indicate the edges does not containes non-zero flow.
FLOW_EDGE
public static final Color FLOW_EDGE
- Indicate the edges containes non-zero flow.
MF_FordFulkerson
public MF_FordFulkerson()
- Constructor of algorithm Ford-Fulkerson.
setArg
protected void setArg(Object args[]) throws IllegalArgumentException
- Set arguments from the argument list.
Valid args: null , Object[]{Integer(int sourceNode),Integer(int sinkNode)}
- Parameters:
- args - The list of arguments.
- Throws: IllegalArgumentException
- Illegal argument defined.
- Overrides:
- setArg in class Algorithm
getPreferredDialog
public GenericDialog getPreferredDialog(Graph graph,
Frame fr)
- Preferred dialog: Ask2VertexDialog.
- Parameters:
- graph - The Graph.
- fr - The parent Frame.
- Returns:
- the preferred dialog.
- Overrides:
- getPreferredDialog in class Algorithm
algorImpl
protected Object algorImpl()
- Implementation of this algorithm.
- Returns:
-
Double(double flow_of_the_graph)
- Overrides:
- algorImpl in class Algorithm
All Packages Class Hierarchy This Package Previous Next Index