object
gomory_hu(Dictionary)
Dictionary- Dictionary object used by the flow network.
Gomory-Hu cut trees for networks with symmetric aggregate capacities. Uses n-1 calls to Dinic for n vertices, with no calls for empty networks. Costs and self-loops do not affect cuts.
logtalk_load(flow_networks(loader))static, context_switching_callsPublic predicates
tree/2
Returns tree(Vertices, Edges) where each edge(Vertex, Parent, Capacity) is a weighted tree edge, in vertex order. Requires zero lower bounds and equal total capacity in both directions for every pair of distinct vertices. Parallel multiplicities may differ. Disconnected components are linked by zero-capacity edges.
statictree(Network,Tree)tree(+compound,-compound) - one_or_errordomain_error(zero_lower_bounds,Network)domain_error(symmetric_capacities,Network)min_cut_value/4
Returns the minimum edge capacity on the unique tree path between distinct vertices. Validates the supplied weighted tree. Adjacency construction and traversal take O(V*log(V)) with balanced dictionaries.
staticmin_cut_value(Tree,Source,Sink,Value)min_cut_value(+compound,+ground,+ground,-integer) - one_or_errorinstantiation_errordomain_error(gomory_hu_tree,Tree)existence_error(vertex,Vertex)consistency_error(distinct_vertices,Source,Sink)Protected predicates
(no local declarations; see entity ancestors if any)
Private predicates
(no local declarations; see entity ancestors if any)
Operators
(none)
See also