|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
67 void prepareGraph(
const Graph& graph);
75 int computeConnectivity(
node v,
node u);
92 void duplicateEdges(
Graph& graph);
100 void restrictNodes(
Graph& graph);
109 node copyOf(
node v,
bool isSource =
false)
const;
120 m_usingDefaultMaxFlow =
true;
131 bool directed =
false)
132 : m_flowAlgo(flowAlgo)
134 , m_usingDefaultMaxFlow(false)
135 , m_graphCopied(false)
136 , m_nodeConnectivity(nodeConnectivity)
137 , m_directed(directed)
138 , m_graph(nullptr) { }
144 if (m_usingDefaultMaxFlow) {
167 return computeConnectivity(copyOf(v,
true), copyOf(u));
182 return computeConnectivity(result);
The namespace for all OGDF objects.
NodeArray< node > * m_source
Includes declaration of graph class.
Interface for Max Flow Algorithms.
ConnectivityTester(MaxFlowModule< int > *flowAlgo, bool nodeConnectivity=true, bool directed=false)
Initializes a new onnectivity tester using a custom ogdf::MaxFlowModule.
ConnectivityTester(bool nodeConnectivity=true, bool directed=false)
Initializes a new connectivity tester using ogdf::MaxFlowGoldbergTarjan.
Computes a max flow via Preflow-Push (global relabeling and gap relabeling heuristic).
MaxFlowModule< int > * m_flowAlgo
~ConnectivityTester()
Destroys the connectivity tester and frees allocated memory.
Declaration and implementation of Goldberg-Tarjan max-flow algorithm with global relabeling and gap r...
Naive implementation for testing the connectivity of a graph.
bool m_usingDefaultMaxFlow
RegisteredArray for nodes, edges and adjEntries of a graph.
Data type for general directed graphs (adjacency list representation).
Basic declarations, included by all source files.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
int computeConnectivity(const Graph &graph, NodeArray< NodeArray< int >> &result)
Computes the connectivity of all nodes of the provided graph.
Class for the representation of nodes.
int computeConnectivity(const Graph &graph, node v, node u)
Computes the connectivity of two nodes.