Loading [MathJax]/extensions/tex2jax.js

Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
MinimumCutModule.h
Go to the documentation of this file.
1
32#pragma once
33
34#include <ogdf/basic/Graph_d.h>
35
36namespace ogdf {
37
44template<typename T>
46public:
48 virtual ~MinimumCutModule() { }
49
56 virtual T call(const Graph& G) = 0;
57
65 virtual T call(const Graph& G, const EdgeArray<T>& weights) = 0;
66
68 virtual const ArrayBuffer<edge>& edges() = 0;
69
71 virtual const ArrayBuffer<node>& nodes() = 0;
72
74 virtual T value() const = 0;
75};
76
77}
Pure declaration header, find template implementation in Graph.h.
An array that keeps track of the number of inserted elements; also usable as an efficient stack.
Definition ArrayBuffer.h:56
Dynamic arrays indexed with edges.
Definition EdgeArray.h:125
Data type for general directed graphs (adjacency list representation).
Definition Graph_d.h:521
Serves as an interface for various methods to compute minimum cuts with or without edge weights.
virtual T value() const =0
Returns the value of the last minimum cut computation.
virtual T call(const Graph &G, const EdgeArray< T > &weights)=0
Computes the minimum cut of G with edge weights weights.
virtual const ArrayBuffer< node > & nodes()=0
Returns a list of nodes belonging to one side of the bipartition.
virtual const ArrayBuffer< edge > & edges()=0
Returns the edges defining the computed mincut.
virtual ~MinimumCutModule()
Do nothing on destruction.
virtual T call(const Graph &G)=0
Computes the minimum cut of G.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.