119 m_usingDefaultMaxFlow =
true;
130 bool directed =
false)
133 , m_usingDefaultMaxFlow(
false)
134 , m_graphCopied(
false)
136 , m_directed(directed)
143 if (m_usingDefaultMaxFlow) {
166 return computeConnectivity(copyOf(v,
true), copyOf(u));
181 return computeConnectivity(result);
Declaration of graph copy classes.
Declaration and implementation of Goldberg-Tarjan max-flow algorithm with global relabeling and gap r...
Interface for Max Flow Algorithms.
Naive implementation for testing the connectivity of a graph.
int computeConnectivity(const Graph &graph, node v, node u)
Computes the connectivity of two nodes.
int computeConnectivity(NodeArray< NodeArray< int > > &result)
Computes the connectivity of all nodes of the transformed graph.
~ConnectivityTester()
Destroys the connectivity tester and frees allocated memory.
ConnectivityTester(bool nodeConnectivity=true, bool directed=false)
Initializes a new connectivity tester using ogdf::MaxFlowGoldbergTarjan.
ConnectivityTester(MaxFlowModule< int > *flowAlgo, bool nodeConnectivity=true, bool directed=false)
Initializes a new onnectivity tester using a custom ogdf::MaxFlowModule.
void restrictNodes(Graph &graph)
Restricts the flow through each node to 1.
MaxFlowModule< int > * m_flowAlgo
void prepareGraph(const Graph &graph)
Prepares the graph.
bool m_usingDefaultMaxFlow
void duplicateEdges(Graph &graph)
Makes the graph bi-directed.
node copyOf(node v, bool isSource=false) const
Retuns the node of the transformed graph corresponding to node v.
int computeConnectivity(const Graph &graph, NodeArray< NodeArray< int > > &result)
Computes the connectivity of all nodes of the provided graph.
NodeArray< node > * m_source
int computeConnectivity(node v, node u)
Computes the connectivity of two nodes of the transformed graph.
Data type for general directed graphs (adjacency list representation).
Computes a max flow via Preflow-Push (global relabeling and gap relabeling heuristic).
Dynamic arrays indexed with nodes.
Class for the representation of nodes.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.