Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

ClusterPlanarity.h
Go to the documentation of this file.
1 
31 #pragma once
32 
33 #include <ogdf/basic/Graph.h>
34 #include <ogdf/basic/GraphSets.h> // IWYU pragma: keep
35 #include <ogdf/basic/basic.h>
38 
39 #include <utility>
40 #include <vector>
41 
42 namespace ogdf {
43 
46  std::vector<std::pair<adjEntry, adjEntry>>* m_augmentation = nullptr;
47 
48 public:
49  bool isClusterPlanar(const ClusterGraph& CG) override;
50  bool isClusterPlanarDestructive(ClusterGraph& CG, Graph& G) override;
51  bool clusterPlanarEmbedClusterPlanarGraph(ClusterGraph& CG, Graph& G) override;
52 
54 
58  void setStoreAugmentation(std::vector<std::pair<adjEntry, adjEntry>>* augmentation) {
59  m_augmentation = augmentation;
60  }
61 
62  std::vector<std::pair<adjEntry, adjEntry>>* getStoreAugmentation() const {
63  return m_augmentation;
64  }
65 
66 protected:
67  void copyBackEmbedding(ClusterGraph& CG, Graph& G, const ClusterGraph& CGcopy, const Graph& Gcopy,
68  const ClusterArray<cluster, true>& copyC, const NodeArray<node, true>& copyN,
69  const EdgeArray<edge, true>& copyE, const EdgeArray<edge, true>& origE) const override;
70 };
71 
73 
84  const std::vector<std::vector<node>>& emb, Graph& G, ClusterGraph& CG,
85  EdgeArray<node>& embMap);
86 
88 
97 OGDF_EXPORT void insertAugmentationEdges(const ClusterGraph& CG, Graph& G,
98  std::vector<std::pair<adjEntry, adjEntry>>& augmentation, EdgeSet<>* added = nullptr,
99  bool embedded = true, bool assert_minimal = true);
100 
101 }
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
Graph.h
Includes declaration of graph class.
ClusterPlanarityModule.h
Declaration of ClusterPlanarityModule which implements a cluster-planarity test and,...
ogdf::reduceLevelPlanarityToClusterPlanarity
void reduceLevelPlanarityToClusterPlanarity(const Graph &LG, const std::vector< std::vector< node >> &emb, Graph &G, ClusterGraph &CG, EdgeArray< node > &embMap)
Perform the reduction from level- to cluster planarity.
ogdf::ClusterArrayBase
RegisteredArray for labeling the clusters of a ClusterGraph.
Definition: ClusterGraph.h:311
GraphSets.h
Declaration and implementation of NodeSet, EdgeSet, and AdjEntrySet classes.
ogdf::SyncPlanClusterPlanarityModule::getStoreAugmentation
std::vector< std::pair< adjEntry, adjEntry > > * getStoreAugmentation() const
Definition: ClusterPlanarity.h:62
ogdf::SyncPlanClusterPlanarityModule::setStoreAugmentation
void setStoreAugmentation(std::vector< std::pair< adjEntry, adjEntry >> *augmentation)
When set to a non-null pointer, will contain the augmentation edges to make the graph c-connected c-p...
Definition: ClusterPlanarity.h:58
ogdf::SyncPlanClusterPlanarityModule
ClusterPlanarity testing in quadratic time using the Synchronized Planarity approach.
Definition: ClusterPlanarity.h:45
ogdf::internal::GraphRegisteredArray
RegisteredArray for nodes, edges and adjEntries of a graph.
Definition: Graph_d.h:658
ogdf::Graph
Data type for general directed graphs (adjacency list representation).
Definition: Graph_d.h:869
basic.h
Basic declarations, included by all source files.
ogdf::insertAugmentationEdges
void insertAugmentationEdges(const ClusterGraph &CG, Graph &G, std::vector< std::pair< adjEntry, adjEntry >> &augmentation, EdgeSet<> *added=nullptr, bool embedded=true, bool assert_minimal=true)
Inserts augmentation edges to make a c-plane graph c-connected while maintaining the combinatorial em...
OGDF_EXPORT
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:101
ClusterGraph.h
Derived class of GraphObserver providing additional functionality to handle clustered graphs.
ogdf::ClusterGraph
Representation of clustered graphs.
Definition: ClusterGraph.h:346
ogdf::ClusterPlanarityModule
Definition: ClusterPlanarityModule.h:48
ogdf::internal::EdgeArrayBase2
RegisteredArray for edges of a graph, specialized for EdgeArray<edge>.
Definition: Graph_d.h:716