64 void prepareGraph(
const Graph &graph);
72 int computeConnectivity(
node v,
node u);
89 void duplicateEdges(
Graph &graph);
97 void restrictNodes(
Graph &graph);
106 node copyOf(
node v,
bool isSource =
false)
const;
117 m_usingDefaultMaxFlow =
true;
128 m_flowAlgo(flowAlgo),
130 m_usingDefaultMaxFlow(false),
131 m_graphCopied(false),
132 m_nodeConnectivity(nodeConnectivity),
133 m_directed(directed),
141 if (m_usingDefaultMaxFlow) {
164 return computeConnectivity(copyOf(v,
true), copyOf(u));
179 return computeConnectivity(result);
bool m_usingDefaultMaxFlow
Data type for general directed graphs (adjacency list representation).
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Interface for Max Flow Algorithms.
int computeConnectivity(const Graph &graph, NodeArray< NodeArray< int >> &result)
Computes the connectivity of all nodes of the provided graph.
Declaration and implementation of Goldberg-Tarjan max-flow algorithm with global relabeling and gap r...
NodeArray< node > * m_source
Dynamic arrays indexed with nodes.
Declaration of graph copy classes.
ConnectivityTester(MaxFlowModule< int > *flowAlgo, bool nodeConnectivity=true, bool directed=false)
Initializes a new onnectivity tester using a custom ogdf::MaxFlowModule.
Naive implementation for testing the connectivity of a graph.
int computeConnectivity(const Graph &graph, node v, node u)
Computes the connectivity of two nodes.
Class for the representation of nodes.
ConnectivityTester(bool nodeConnectivity=true, bool directed=false)
Initializes a new connectivity tester using ogdf::MaxFlowGoldbergTarjan.
~ConnectivityTester()
Destroys the connectivity tester and frees allocated memory.
The namespace for all OGDF objects.
MaxFlowModule< int > * m_flowAlgo
Computes a max flow via Preflow-Push (global relabeling and gap relabeling heuristic).