Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

SimpleIncNodeInserter.h
Go to the documentation of this file.
1 
38 #pragma once
39 
41 #include <ogdf/uml/UMLGraph.h>
45 #include <ogdf/basic/FaceArray.h>
46 
47 namespace ogdf {
48 
50 {
51 public:
52  //creates inserter on PG
53  explicit SimpleIncNodeInserter(PlanRepInc &PG);
54  virtual ~SimpleIncNodeInserter();
55 
56  //insert copy in m_planRep for original node v
57  void insertCopyNode(node v, CombinatorialEmbedding &E,
58  Graph::NodeType vTyp) override;
59 
60  //insert copy without respecting embedding
61  void insertCopyNode(node v, Graph::NodeType vTyp);
62 
63 protected:
64  //insertAfterAdj will be filled with adjEntries for the
65  //(new) edges around the copy of v to be inserted after.
66  //sorted in the order of the edge around v
67  face getInsertionFace(node v, CombinatorialEmbedding &E) override;
68 
69  //constructs a dual graph on the copy PlanRep,
70  //vCopy is the node to be inserted
71  void constructDual(const Graph &G, const CombinatorialEmbedding &E,
72  bool forbidCrossings = true);
73 
74  void insertFaceEdges(node v, node vCopy, face f, CombinatorialEmbedding &E,
75  adjEntry &adExternal);
76  void insertCrossingEdges(node v, node vCopy, CombinatorialEmbedding &E, adjEntry &adExternal);
77  void findShortestPath(const CombinatorialEmbedding &E, node s,
78  node t, Graph::EdgeType eType, SList<adjEntry> &crossed);
79  void insertEdge(CombinatorialEmbedding &E, edge eOrig,
80  const SList<adjEntry> &crossed, bool forbidCrossingGens);
81 
82 private:
84  inline void updateComponentNumber(node vCopy, node wCopy, CombinatorialEmbedding &E, adjEntry adExternal);
85 
86  //dual graph for the edge insertion
97 };
98 
99 }
Declaration of class GraphAttributes which extends a Graph by additional attributes.
bool m_forbidCrossings
should generalization crossings be avoided
EdgeArray< bool > m_primalIsGen
true iff corresponding primal edge is a generalization
Data type for general directed graphs (adjacency list representation).
Definition: Graph_d.h:492
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
node m_vT
sink in the dual graph for edge insertion
declaration and implementation of FaceArray class
Dynamic arrays indexed with edges.
Definition: EdgeArray.h:112
Abstract base class for structures on graphs, that need to be informed about graph changes (e...
Declaration of class UMLGraph.
Singly linked lists (maintaining the length of the list).
Definition: SList.h:773
Declaration of class IncNodeInserter.
NodeArray< bool > m_insertFaceNode
node lies at border of insertionface
Dynamic arrays indexed with faces of a combinatorial embedding.
EdgeType
The type of edges (only used in derived classes).
Definition: Graph_d.h:538
Faces in a combinatorial embedding.
Class for the representation of edges.
Definition: Graph_d.h:292
This class is only an adaption of PlanRep for the special incremental drawing case.
Definition: PlanRepInc.h:55
node m_vS
source in the dual graph for edge insertion
Class for the representation of nodes.
Definition: Graph_d.h:169
EdgeArray< adjEntry > m_primalAdj
copy adj for edges in dual graph
The namespace for all OGDF objects.
NodeType
The type of nodes.
Definition: Graph_d.h:545
Declaration of class PlanRepInc.
Combinatorial embeddings of planar graphs with modification functionality.
NodeArray< List< edge > *> m_incidentEdges
original edges(insertionnode) incident to original(node)
NodeArray< bool > m_vAdjNodes
node is adjacent to insertion node
Class for adjacency list elements.
Definition: Graph_d.h:79
FaceArray< node > m_nodeOf
node in dual corresponding to to face in primal