Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

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 
61  }
62 
63  Verification isCPlanar(const ClusterGraph &C, bool doPreproc = true, bool forceSolver = false, Solver solver = Solver::HananiTutte);
64 
65  Status status() const { return m_status; }
66 
67  void preprocessing(ClusterGraph &C, Graph &G);
68 
69  int numNodesPreproc() const { return m_numNodesPreproc; }
70  int numEdgesPreproc() const { return m_numEdgesPreproc; }
71  int numClustersPreproc() const { return m_numClustersPreproc; }
72 
73  int numMatrixRows() const { return m_nRows; }
74  int numMatrixCols() const { return m_nCols; }
75 
76  int64_t timePrepare() const { return m_tPrepare; }
77  int64_t timeCreateSparse() const { return m_tCreateSparse; }
78  int64_t timesolve() const { return m_tSolve; }
79 
80 private:
81  int m_nRows;
82  int m_nCols;
83  int64_t m_tPrepare;
84  int64_t m_tCreateSparse;
85  int64_t m_tSolve;
86 
91 };
92 
93 
94 }
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:472
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.