Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
ogdf::MinimumCutModule< T > Class Template Referenceabstract

Serves as an interface for various methods to compute minimum cuts with or without edge weights. More...

#include <ogdf/graphalg/MinimumCutModule.h>

+ Inheritance diagram for ogdf::MinimumCutModule< T >:

Public Member Functions

virtual ~MinimumCutModule ()
 Do nothing on destruction.
 
virtualcall (const Graph &G)=0
 Computes the minimum cut of G.
 
virtualcall (const Graph &G, const EdgeArray< T > &weights)=0
 Computes the minimum cut of G with edge weights weights.
 
virtual const ArrayBuffer< edge > & edges ()=0
 Returns the edges defining the computed mincut.
 
virtual const ArrayBuffer< node > & nodes ()=0
 Returns a list of nodes belonging to one side of the bipartition.
 
virtualvalue () const =0
 Returns the value of the last minimum cut computation.
 

Detailed Description

template<typename T>
class ogdf::MinimumCutModule< T >

Serves as an interface for various methods to compute minimum cuts with or without edge weights.

Template Parameters
TThe type of the edge weights of the mincut instance

Definition at line 45 of file MinimumCutModule.h.

Constructor & Destructor Documentation

◆ ~MinimumCutModule()

template<typename T >
virtual ogdf::MinimumCutModule< T >::~MinimumCutModule ( )
inlinevirtual

Do nothing on destruction.

Definition at line 48 of file MinimumCutModule.h.

Member Function Documentation

◆ call() [1/2]

template<typename T >
virtual T ogdf::MinimumCutModule< T >::call ( const Graph G)
pure virtual

Computes the minimum cut of G.

Parameters
GThe input graph
Returns
The minimum cut value

Implemented in ogdf::MinimumCutNagamochiIbaraki, and ogdf::MinimumCutStoerWagner< T >.

◆ call() [2/2]

template<typename T >
virtual T ogdf::MinimumCutModule< T >::call ( const Graph G,
const EdgeArray< T > &  weights 
)
pure virtual

Computes the minimum cut of G with edge weights weights.

Parameters
GThe input graph
weightsThe edge weights
Returns
The minimum cut value

Implemented in ogdf::MinimumCutNagamochiIbaraki, and ogdf::MinimumCutStoerWagner< T >.

◆ edges()

template<typename T >
virtual const ArrayBuffer< edge > & ogdf::MinimumCutModule< T >::edges ( )
pure virtual

Returns the edges defining the computed mincut.

Implemented in ogdf::MinimumCutNagamochiIbaraki, and ogdf::MinimumCutStoerWagner< T >.

◆ nodes()

template<typename T >
virtual const ArrayBuffer< node > & ogdf::MinimumCutModule< T >::nodes ( )
pure virtual

Returns a list of nodes belonging to one side of the bipartition.

Implemented in ogdf::MinimumCutNagamochiIbaraki, and ogdf::MinimumCutStoerWagner< T >.

◆ value()

template<typename T >
virtual T ogdf::MinimumCutModule< T >::value ( ) const
pure virtual

Returns the value of the last minimum cut computation.

Implemented in ogdf::MinimumCutNagamochiIbaraki, and ogdf::MinimumCutStoerWagner< T >.


The documentation for this class was generated from the following file: