Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

HananiTutteCPlanarity.h
Go to the documentation of this file.
1 
33 #pragma once
34 
36 
37 
38 namespace ogdf {
39 
40 
42 
46 
47  class CLinearSystem;
48  class CGraph;
49 
50 public:
51 
53  enum class Status { invalid, emptyAfterPreproc, cConnectedAfterPreproc, nonPlanarAfterPreproc, applyHananiTutte, applyILP, timeoutILP, errorILP };
54  enum class Verification { cPlanar, cPlanarVerified, nonCPlanarVerified, verificationFailed, timeout };
55 
56  enum class Type : uint16_t { tVertex, tEdge };
57  enum class SubType : uint16_t { stVertex, stCluster, stEdge, stInnerCluster, stOuterCluster, stVertexCluster, stClusterCluster, stCrossCluster };
58 
59  Verification isCPlanar(const ClusterGraph &C, bool doPreproc = true, bool forceSolver = false, Solver solver = Solver::HananiTutte);
60 
61  Status status() const { return m_status; }
62 
63  void preprocessing(ClusterGraph &C, Graph &G);
64 
65  int numNodesPreproc() const { return m_numNodesPreproc; }
66  int numEdgesPreproc() const { return m_numEdgesPreproc; }
67  int numClustersPreproc() const { return m_numClustersPreproc; }
68 
69  int numMatrixRows() const { return m_nRows; }
70  int numMatrixCols() const { return m_nCols; }
71 
72  int64_t timePrepare() const { return m_tPrepare; }
73  int64_t timeCreateSparse() const { return m_tCreateSparse; }
74  int64_t timesolve() const { return m_tSolve; }
75 
76 private:
77  int m_nRows = 0;
78  int m_nCols = 0;
79  int64_t m_tPrepare = 0;
80  int64_t m_tCreateSparse = 0;
81  int64_t m_tSolve = 0;
82 
87 };
88 
89 
90 }
Derived class of GraphObserver providing additional functionality to handle clustered graphs...
Verification isCPlanar(const ClusterGraph &C, bool doPreproc=true, bool forceSolver=false, Solver solver=Solver::HananiTutte)
Data type for general directed graphs (adjacency list representation).
Definition: Graph_d.h:492
C-planarity testing via Hanani-Tutte approach.
Representation of clustered graphs.
Definition: ClusterGraph.h:291
void preprocessing(ClusterGraph &C, Graph &G)
The namespace for all OGDF objects.