|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
61 int64_t tCreateSparse = 0;
68 virtual bool test(
Stats& stats) = 0;
69 virtual bool verify(
Stats& stats) = 0;
72 enum class Solver { HananiTutte, HananiTutteVerify, ILP };
76 cConnectedAfterPreproc,
77 nonPlanarAfterPreproc,
91 enum class Type : uint16_t { tVertex, tEdge };
104 Verification res = isCPlanar(CG,
true,
false, Solver::HananiTutteVerify);
105 if (res == Verification::cPlanar || res == Verification::cPlanarVerified) {
107 }
else if (res == Verification::nonCPlanarVerified) {
110 throw std::runtime_error(
"Could not solve instance!");
115 return isClusterPlanar(CG);
118 Verification isCPlanar(
const ClusterGraph& C,
bool doPreproc =
true,
bool forceSolver =
false,
119 Solver solver = Solver::HananiTutte);
144 static HananiTutteSolver* getSolver(
const ClusterGraph& C);
149 int m_numNodesPreproc = 0;
150 int m_numEdgesPreproc = 0;
151 int m_numClustersPreproc = 0;
The namespace for all OGDF objects.
int64_t timesolve() const
int numNodesPreproc() const
Declaration of ClusterPlanarityModule which implements a cluster-planarity test and,...
int numClustersPreproc() const
bool isClusterPlanar(const ClusterGraph &CG) override
Returns true, if CG is cluster-planar, false otherwise.
Data type for general directed graphs (adjacency list representation).
int numEdgesPreproc() const
int64_t timeCreateSparse() const
int64_t timePrepare() const
C-planarity testing via Hanani-Tutte approach.
Basic declarations, included by all source files.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
bool isClusterPlanarDestructive(ClusterGraph &CG, Graph &G) override
Returns true, if CG is cluster-planar, false otherwise. In it is non-cluster-planar,...
const Stats & stats() const
Representation of clustered graphs.
int numMatrixCols() const
int numMatrixRows() const