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_callsImports:
public max_flow_common(Dictionary)Remarks:
(none)
Inherited public predicates:
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)