Class DinicMaximumFlow

java.lang.Object
org.graph4j.flow.MaximumFlowBase
org.graph4j.flow.DinicMaximumFlow
All Implemented Interfaces:
MaximumFlowAlgorithm

public class DinicMaximumFlow extends MaximumFlowBase
/** Implements the Dinic algorithm for finding the maximum flow in a network. The algorithm works by repeatedly finding blocking flows in level graphs and augmenting the flow along these paths. Dinic's algorithm is an efficient maximum flow algorithm with a time complexity of O(n^2 * m) for general graphs and O(m * sqrt(n)) for unit capacity graphs, where n is the number of vertices and m is the number of edges.
Author:
Cristian Frăsinaru
  • Constructor Details

    • DinicMaximumFlow

      public DinicMaximumFlow(Network graph)
    • DinicMaximumFlow

      public DinicMaximumFlow(Network graph, FlowData flow)
  • Method Details