.. index:: single: dinic(Dictionary) .. _dinic/1: .. rst-class:: right **object** ``dinic(Dictionary)`` ===================== * ``Dictionary`` - Dictionary object used by the flow network (e.g., ``avltree``). Dinic maximum flow algorithm. Each phase builds a level graph using breadth-first search and then computes a blocking flow using depth-first search. Runs in O(V^2*E) time. A vertex whose depth-first search fails to push the requested amount is recorded as dead for the rest of the phase, which plays the role of the current-arc pointers of imperative implementations. | **Availability:** | ``logtalk_load(flow_networks(loader))`` | **Author:** Paulo Moura | **Version:** 1:0:0 | **Date:** 2026-11-16 | **Compilation flags:** | ``static, context_switching_calls`` | **Imports:** | ``public`` :ref:`max_flow_common(Dictionary) ` | **Remarks:** | (none) | **Inherited public predicates:** |  :ref:`max_flow_protocol/0::max_flow/5`  :ref:`max_flow_protocol/0::min_cut/5`  :ref:`max_flow_protocol/0::min_cuts/5`  :ref:`max_flow_protocol/0::multi_source_max_flow/5`  :ref:`max_flow_protocol/0::node_capacity_max_flow/6`  :ref:`max_flow_protocol/0::sink_closest_min_cut/5`  :ref:`max_flow_protocol/0::unique_min_cut/4`   .. contents:: :local: :backlinks: top Public predicates ----------------- (no local declarations; see entity ancestors if any) Protected predicates -------------------- (no local declarations; see entity ancestors if any) Private predicates ------------------ (no local declarations; see entity ancestors if any) Operators --------- (none) .. seealso:: :ref:`edmonds_karp(Dictionary) `, :ref:`dinic `, :ref:`flow_network(Dictionary) `