Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

PlanRep.h
Go to the documentation of this file.
1 
34 // PlanRep should not know about generalizations and association,
35 // but we already set types in Attributedgraph, therefore set them
36 // in PlanRep, too
37 
38 #pragma once
39 
40 #include <ogdf/basic/GraphCopy.h>
43 #include <ogdf/basic/Layout.h>
44 #include <ogdf/basic/GridLayout.h>
45 #include <ogdf/basic/Stack.h>
46 
47 
48 namespace ogdf {
49 
50 class OrthoRep;
51 
52 
54 
61 {
62 public:
65  {
66  Deg1RestoreInfo() : m_eOriginal(nullptr), m_deg1Original(nullptr), m_adjRef(nullptr) { }
67  Deg1RestoreInfo(edge eOrig, node deg1Orig, adjEntry adjRef)
68  : m_eOriginal(eOrig), m_deg1Original(deg1Orig), m_adjRef(adjRef) { }
69 
73  };
74 
75 
77  explicit PlanRep(const Graph& G);
79 
81  explicit PlanRep(const GraphAttributes& AG);
82 
83  virtual ~PlanRep() { }
84 
86 
93 
95  int numberOfCCs() const {
96  return m_ccInfo.numberOfCCs();
97  }
98 
100  int currentCC() const {
101  return m_currentCC;
102  }
103 
105  const CCsInfo &ccInfo() const { return m_ccInfo; }
106 
108  int numberOfNodesInCC() const { return numberOfNodesInCC(m_currentCC); }
109 
111  int numberOfNodesInCC(int cc) const {
112  return stopNode(cc) - startNode(cc);
113  }
114 
116  node v(int i) const { return m_ccInfo.v(i); }
117 
119  edge e(int i) const { return m_ccInfo.e(i); }
120 
122  int startNode() const { return m_ccInfo.startNode(m_currentCC); }
123 
125  int startNode(int cc) const { return m_ccInfo.startNode(cc); }
126 
128  int stopNode() const { return m_ccInfo.stopNode(m_currentCC); }
129 
131  int stopNode(int cc) const { return m_ccInfo.stopNode(cc); }
132 
134  int startEdge() const { return m_ccInfo.startEdge(m_currentCC); }
135 
137  int stopEdge() const { return m_ccInfo.stopEdge(m_currentCC); }
138 
140 
146  void initCC(int cc);
147 
149 
154 
161  return m_expandAdj[v];
162  }
163 
165  return m_expandAdj[v];
166  }
167 
169 
173 
179  return m_boundaryAdj[v];
180  }
181 
187  return m_boundaryAdj[v];
188  }
189 
190  //edge on the clique boundary, adjSource
192  setEdgeTypeOf(e, edgeTypeOf(e) | cliquePattern());
193  }
195  return (edgeTypeOf(e) & cliquePattern()) == cliquePattern();
196  }
197 
198 
200 
204 
210  return m_vType[v];
211  }
212 
218  return m_vType[v];
219  }
220 
229  inline bool isVertex(node v)
230  {
231  return ( (typeOf(v) == Graph::NodeType::vertex) ||
232  (typeOf(v) == Graph::NodeType::associationClass));
233  }
234 
240  {
241  return m_nodeTypes[v];
242  }
243 
249  {
251  }
252 
258  {
259  return (m_nodeTypes[v] &= (UMLNodeTypeConstants::TerCrossing << UMLNodeTypeOffsets::Tertiary)) != 0;
260  }
261 
263 
267 
272  EdgeType typeOf(edge e) const {
273  return m_eType[e];
274  }
275 
280  EdgeType& typeOf(edge e) {
281  return m_eType[e];
282  }
283 
289  {
290  return m_oriEdgeTypes[e];
291  }
292 
298  {
299  return m_edgeTypes[e];
300  }
301 
307  {
308  return m_edgeTypes[e];
309  }
310 
317  {
318  m_edgeTypes[e] = et;
319  }
320 
329  void setType(edge e, EdgeType et)
330  {
331  m_eType[e] = et;
332  switch (et)
333  {
334  case Graph::EdgeType::association: m_edgeTypes[e] = static_cast<edgeType>(UMLEdgeTypeConstants::PrimAssociation);break;
336  break;
337  case Graph::EdgeType::dependency: m_edgeTypes[e] = static_cast<edgeType>(UMLEdgeTypeConstants::PrimDependency); break;
338  default: break;
339  }
340  }
341 
342  // new edge types
343  // to set or check edge types use the pattern function in the private section
344 
345  // primary level types
346 
350  return check;
351  }
352 
355  setPrimaryType(e, UMLEdgeTypeConstants::PrimGeneralization);
356 
357  //preliminary set old array too
358  m_eType[e] = EdgeType::generalization; //can be removed if edgetypes work properly
359  }
360 
362  bool isDependency(edge e) {
364  return check;
365  }
366 
368  void setDependency(edge e) {
369  setPrimaryType(e, UMLEdgeTypeConstants::PrimDependency);
370 
371  //preliminary set old array too
372  m_eType[e] = EdgeType::dependency; //can be removed if edgetypes work properly
373  }
374 
377  setPrimaryType(e, UMLEdgeTypeConstants::PrimAssociation);
378 
379  //preliminary set old array too
380  m_eType[e] = EdgeType::association; //can be removed if edgetypes work properly
381  }
382 
383  //second level types
384 
385  //in contrast to setsecondarytype: do not delete old value
386 
388  void setExpansion(edge e) {
389  m_edgeTypes[e] |= expansionPattern();
390 
391  //preliminary set old array too
392  m_expansionEdge[e] = 1;//can be removed if edgetypes work properly
393  }
394 
396  bool isExpansion(edge e) {
397  return (m_edgeTypes[e] & expansionPattern()) == expansionPattern();
398  }
399 
400  //should add things like cluster and clique boundaries that need rectangle shape
401 
403  bool isBoundary(edge e) {
404  return isCliqueBoundary(e); }
405 
406  //tertiary types
407 
410  {
411  m_edgeTypes[e] |= assClassPattern();
412  }
413 
415  bool isAssClass(edge e)
416  {
417  return (m_edgeTypes[e] & assClassPattern()) == assClassPattern();
418  }
419 
420  //fourth level types
421 
423  void setBrother(edge e) {
424  m_edgeTypes[e] |= brotherPattern();
425  }
426 
429  m_edgeTypes[e] |= halfBrotherPattern();
430  }
431 
433  bool isBrother(edge e) {
434  return ( (m_edgeTypes[e] & UMLEdgeTypePatterns::Fourth & brotherPattern()) >> UMLEdgeTypeOffsets::Fourth) == UMLEdgeTypeConstants::Brother;
435  }
436 
438  bool isHalfBrother(edge e) {
439  return ( (m_edgeTypes[e] & UMLEdgeTypePatterns::Fourth & halfBrotherPattern()) >> UMLEdgeTypeOffsets::Fourth) == UMLEdgeTypeConstants::HalfBrother;
440  }
441 
442  //set generic types
443 
445  edgeType edgeTypeAND(edge e, edgeType et) {m_edgeTypes[e] &= et; return m_edgeTypes[e];}
446 
448  edgeType edgeTypeOR(edge e, edgeType et) {m_edgeTypes[e] |= et; return m_edgeTypes[e];}
449 
452  m_edgeTypes[e] &= 0xfffffff0;
453  m_edgeTypes[e] |= (UMLEdgeTypePatterns::Primary & et);
454  }
455 
458  setPrimaryType(e, static_cast<edgeType>(et));
459  }
460 
463  m_edgeTypes[e] &= 0xffffff0f;
464  m_edgeTypes[e] |= (UMLEdgeTypePatterns::Secondary & ( et << UMLEdgeTypeOffsets::Secondary));
465  }
466 
468  edgeType edgeTypePrimaryAND(edge e, edgeType et) {m_edgeTypes[e] &= (UMLEdgeTypePatterns::All & et); return m_edgeTypes[e];}
469 
471  edgeType edgeTypePrimaryOR(edge e, edgeType et) {m_edgeTypes[e] |= et; return m_edgeTypes[e];}
472 
475  {
476  OGDF_ASSERT( et < 147);
477  m_edgeTypes[e] |= (et << UMLEdgeTypeOffsets::User);
478  }
479 
482  {
483  OGDF_ASSERT( et < 147);
484  return (m_edgeTypes[e] & (et << UMLEdgeTypeOffsets::User)) == (et << UMLEdgeTypeOffsets::User);
485  }
486 
487  // old edge types
488 
489  //this is pure nonsense, cause we have uml-edgetype and m_etype, and should be able to
490  //use them with different types, but as long as they arent used correctly (switch instead of xor),
491  //use this function to return if e is expansionedge
492  //if it is implemented correctly later, delete the array and return m_etype == Graph::expand
493  //(the whole function then is obsolete, cause you can check it directly, but for convenience...)
494  //should use genexpand, nodeexpand, dissect instead of bool
495 
497  void setExpansionEdge(edge e, int expType) {
498  m_expansionEdge[e] = expType;
499  }
500 
502  bool isExpansionEdge(edge e) const {
503  return m_expansionEdge[e] > 0;
504  }
505 
507  int expansionType(edge e) const { return m_expansionEdge[e]; }
508 
509  //precondition normalized
511  bool isDegreeExpansionEdge(edge e) const {
512 #if 0
513  return (m_eType[e] == Graph::expand);
514 #else
515  return m_expansionEdge[e] == 2;
516 #endif
517  }
518 
519 
521 
527 
528 
530  const NodeArray<double> &widthOrig() const {
531  OGDF_ASSERT(m_pGraphAttributes != nullptr);
532  return m_pGraphAttributes->width();
533  }
534 
536  double widthOrig(node v) const {
537  OGDF_ASSERT(m_pGraphAttributes != nullptr);
538  return m_pGraphAttributes->width(v);
539  }
540 
542  const NodeArray<double> &heightOrig() const {
543  OGDF_ASSERT(m_pGraphAttributes != nullptr);
544  return m_pGraphAttributes->height();
545  }
546 
548  double heightOrig(node v) const {
549  OGDF_ASSERT(m_pGraphAttributes != nullptr);
550  return m_pGraphAttributes->height(v);
551  }
552 
554  EdgeType typeOrig(edge e) const {
555  OGDF_ASSERT(m_pGraphAttributes != nullptr);
556  return m_pGraphAttributes->type(e);
557  }
558 
561  OGDF_ASSERT(m_pGraphAttributes != nullptr);
562  return *m_pGraphAttributes;
563  }
564 
566 
570 
571  // Expands nodes with degree > 4 and merge nodes for generalizations
572  virtual void expand(bool lowDegreeExpand = false);
573 
574  void expandLowDegreeVertices(OrthoRep &OR);
575 
576  void collapseVertices(const OrthoRep &OR, Layout &drawing);
577  void collapseVertices(const OrthoRep &OR, GridLayout &drawing);
578 
579  void removeCrossing(node v); //removes the crossing at node v
580 
581  //model a boundary around a star subgraph centered at center
582  //and keep external face information (outside the clique
583  void insertBoundary(node center, adjEntry& adjExternal);
584 
585 
587 
591 
593  virtual edge split(edge e) override;
594 
595 
596  //returns node which was expanded using v
597  node expandedNode(node v) const { return m_expandedNode[v]; }
598 
599  void setExpandedNode(node v, node w) { m_expandedNode[v] = w; }
600 
601 
603 
607 
613  node newCopy(node vOrig, Graph::NodeType vType);
614 
622  edge newCopy(node v, adjEntry adjAfter, edge eOrig);
623 
632  edge newCopy(node v, adjEntry adjAfter, edge eOrig, CombinatorialEmbedding &E);
633 
634 
636 
640 
642 
647  void insertEdgePath(edge eOrig, const SList<adjEntry> &crossedEdges);
648 
650  void insertEdgePathEmbedded(
651  edge eOrig,
653  const SList<adjEntry> &crossedEdges);
654 
656 
660  edge eOrig,
661  FaceSetPure &newFaces) {
662  GraphCopy::removeEdgePathEmbedded(E,eOrig,newFaces);
663  }
664 
666 
680  edge insertCrossing(
681  edge &crossingEdge,
682  edge crossedEdge,
683  bool topDown);
684 
686 
691 
699  void removeDeg1Nodes(Stack<Deg1RestoreInfo> &S, const NodeArray<bool> &mark);
700 
706  void restoreDeg1Nodes(Stack<Deg1RestoreInfo> &S, List<node> &deg1s);
707 
709  void writeGML(const char *fileName, const OrthoRep &OR, const GridLayout &drawing);
710  void writeGML(ostream &os, const OrthoRep &OR, const GridLayout &drawing);
711 
712 protected:
713 
716  //int m_numCC; //!< The number of components in the original graph.
717 
718  //Array<List<node> > m_nodesInCC; //!< The list of original nodes in each component.
719 
721 
722  // object types
723 
724  //set the type of eCopy according to the type of eOrig
725  //should be virtual if PlanRepUML gets its own
726  void setCopyType(edge eCopy, edge eOrig);
727 
728  //helper to cope with the edge types, shifting to the right place
736 
737 
739 
741 
744 
745  //clique handling: We save an adjEntry of the first edge of an inserted
746  //boundary around a clique at its center v
748 
749  //zusammenlegbare Typen
750  EdgeArray<int> m_expansionEdge; //1 genmerge, 2 degree (2 highdegree, 3 lowdegree)
752 
753  //m_edgeTypes stores semantic edge type information on several levels:
754  //primary type: generalization, association,...
755  //secondary type: merger,...
756  //tertiary type: vertical in hierarchy, inner, outer, ...
757  //fourth type: neighbour relation (brother, cousin in hierarchy)
758  //user types: user defined for local changes
759  EdgeArray<edgeType> m_edgeTypes; //store all type information
760 
761  //workaround fuer typsuche in insertedgepathembed
762  //speichere kopietyp auf originalen
763  //maybe it's enough to set gen/ass without extra array
765 
766  EdgeArray<edge> m_eAuxCopy; // auxiliary (GraphCopy::initByNodes())
767 
768 };//PlanRep
769 
770 } // end namespace ogdf
Representation of a graph&#39;s grid layout.
Definition: GridLayout.h:46
int startNode(int cc) const
Returns the index of the first node in connected component cc.
Definition: PlanRep.h:125
int currentCC() const
Returns the index of the current connected component (-1 if not yet initialized). ...
Definition: PlanRep.h:100
edgeType halfBrotherPattern()
Definition: PlanRep.h:734
double heightOrig(node v) const
Returns the height of original node v.
Definition: PlanRep.h:548
EdgeType typeOrig(edge e) const
Returns the type of original edge e.
Definition: PlanRep.h:554
bool isBrother(edge e)
Returns true if edge e is classified as brother.
Definition: PlanRep.h:433
node v(int i) const
Returns node i in the list of all original nodes.
Definition: PlanRep.h:116
edgeType generalizationPattern()
Definition: PlanRep.h:729
const GraphAttributes * m_pGraphAttributes
Pointer to graph attributes of original graph.
Definition: PlanRep.h:720
adjEntry boundaryAdj(node v) const
Returns the adjacency entry of the first edge of the inserted boundary at a center node (original) of...
Definition: PlanRep.h:178
EdgeArray< EdgeType > m_eType
Definition: PlanRep.h:751
void setUserType(edge e, edgeType et)
Sets user defined type locally.
Definition: PlanRep.h:474
Deg1RestoreInfo(edge eOrig, node deg1Orig, adjEntry adjRef)
Definition: PlanRep.h:67
edgeType assClassPattern()
Definition: PlanRep.h:732
Data type for general directed graphs (adjacency list representation).
Definition: Graph_d.h:472
NodeArray< nodeType > m_nodeTypes
Node types for extended semantic information.
Definition: PlanRep.h:740
edge e(int i) const
Returns edge i in the list of all original edges.
Definition: PlanRep.h:119
int numberOfCCs() const
Returns the number of connected components in the original graph.
Definition: PlanRep.h:95
virtual ~PlanRep()
Definition: PlanRep.h:83
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
bool isCliqueBoundary(edge e)
Definition: PlanRep.h:194
void setDependency(edge e)
Classifies edge e as dependency (primary type).
Definition: PlanRep.h:368
edgeType edgeTypeAND(edge e, edgeType et)
Sets type of edge e to current type (bitwise) AND et.
Definition: PlanRep.h:445
void setExpansion(edge e)
Classifies edge e as expansion edge (secondary type).
Definition: PlanRep.h:388
bool isBoundary(edge e)
Returns true iff edge e is a clique boundary.
Definition: PlanRep.h:403
edgeType edgeTypeOR(edge e, edgeType et)
Sets type of edge e to current type (bitwise) OR et.
Definition: PlanRep.h:448
UMLEdgeTypeConstants
edgeType edgeTypeOf(edge e)
Returns the new type field of e.
Definition: PlanRep.h:297
void setPrimaryType(edge e, UMLEdgeTypeConstants et)
Sets primary edge type of edge e to primary edge type in et (deletes old primary value).
Definition: PlanRep.h:457
edgeType cliquePattern()
Definition: PlanRep.h:735
Orthogonal representation of an embedded graph.
Definition: OrthoRep.h:237
void setExpansionEdge(edge e, int expType)
Sets the expansion edge type of e to expType.
Definition: PlanRep.h:497
edgeType & oriEdgeTypes(edge e)
Returns a reference to the type of original edge e.
Definition: PlanRep.h:288
Graph::NodeType & typeOf(node v)
Returns a reference to the type of node v.
Definition: PlanRep.h:217
edgeType edgeTypePrimaryAND(edge e, edgeType et)
Sets primary type of e to bitwise AND of et&#39;s primary value and old value.
Definition: PlanRep.h:468
void setSecondaryType(edge e, edgeType et)
Sets secondary edge type of edge e to primary edge type in et.
Definition: PlanRep.h:462
int expansionType(edge e) const
Returns the expansion edge type of e.
Definition: PlanRep.h:507
void setCrossingType(node v)
Classifies node v as a crossing.
Definition: PlanRep.h:248
adjEntry & boundaryAdj(node v)
Returns a reference to the adjacency entry of the first edge of the inserted boundary at a center nod...
Definition: PlanRep.h:186
void setGeneralization(edge e)
Classifies edge e as generalization (primary type).
Definition: PlanRep.h:354
node m_deg1Original
the original deg-1 node
Definition: PlanRep.h:71
Information for restoring degree-1 nodes.
Definition: PlanRep.h:64
bool isHalfBrother(edge e)
Returns true if edge e is classified as half-brother.
Definition: PlanRep.h:438
Graph::NodeType typeOf(node v) const
Returns the type of node v.
Definition: PlanRep.h:209
void setType(edge e, EdgeType et)
Set both type values of e at once.
Definition: PlanRep.h:329
Singly linked lists (maintaining the length of the list).
Definition: SList.h:777
int stopNode() const
Returns the index of (one past) the last node in this connected component.
Definition: PlanRep.h:128
NodeArray< node > m_expandedNode
For all expansion nodes, save expanded node.
Definition: PlanRep.h:742
const GraphAttributes & getGraphAttributes() const
Returns the graph attributes of the original graph (the pointer may be 0).
Definition: PlanRep.h:560
Declaration of node types and patterns for planar representations.
EdgeArray< edgeType > m_oriEdgeTypes
Definition: PlanRep.h:764
Graph::CCsInfo m_ccInfo
Definition: PlanRep.h:715
Declaration of class Layout.
bool isExpansionEdge(edge e) const
Returns if e is an expansion edge.
Definition: PlanRep.h:502
void setCliqueBoundary(edge e)
Definition: PlanRep.h:191
EdgeArray< edge > m_eAuxCopy
Definition: PlanRep.h:766
bool isCrossingType(node v)
Returns true iff node v is classified as a crossing.
Definition: PlanRep.h:257
void removeEdgePathEmbedded(CombinatorialEmbedding &E, edge eOrig, FaceSetPure &newFaces)
Removes the complete edge path for edge eOrig while preserving the embedding.
edge m_eOriginal
the original edge leading to the deg-1 node
Definition: PlanRep.h:70
adjEntry expandAdj(node v) const
Returns the adjacency entry of a node of an expanded face.
Definition: PlanRep.h:160
edgeType expansionPattern()
Definition: PlanRep.h:731
EdgeType typeOf(edge e) const
Returns the type of edge e.
Definition: PlanRep.h:272
Declaration of class GridLayout.
Stores additional attributes of a graph (like layout information).
void setAssociation(edge e)
Classifies edge e as association (primary type).
Definition: PlanRep.h:376
edgeType edgeTypePrimaryOR(edge e, edgeType et)
Sets primary type of e to bitwise OR of et&#39;s primary value and old value.
Definition: PlanRep.h:471
Doubly linked lists (maintaining the length of the list).
Definition: List.h:39
bool isUserType(edge e, edgeType et)
Returns user defined type.
Definition: PlanRep.h:481
Declaration of graph copy classes.
long long nodeType
void setEdgeTypeOf(edge e, edgeType et)
Sets the new type field of edge e to et.
Definition: PlanRep.h:316
bool isDegreeExpansionEdge(edge e) const
Returns if e is a degree expansion edge.
Definition: PlanRep.h:511
Class for the representation of edges.
Definition: Graph_d.h:291
Copies of graphs supporting edge splitting.
Definition: GraphCopy.h:250
edgeType & edgeTypes(edge e)
Returns a reference to the new type field of e.
Definition: PlanRep.h:306
EdgeArray< edgeType > m_edgeTypes
Definition: PlanRep.h:759
bool isGeneralization(edge e)
Returns true iff edge e is classified as generalization.
Definition: PlanRep.h:348
Class for the representation of nodes.
Definition: Graph_d.h:167
void setAssClass(edge e)
Classifies edge e as connection at an association class (tertiary type).
Definition: PlanRep.h:409
node expandedNode(node v) const
Definition: PlanRep.h:597
Edge types and patterns for planar representations.
void setPrimaryType(edge e, edgeType et)
Sets primary edge type of edge e to primary edge type in et (deletes old primary value).
Definition: PlanRep.h:451
Info structure for maintaining connected components.
Definition: Graph_d.h:1286
NodeArray< adjEntry > m_boundaryAdj
Definition: PlanRep.h:747
double widthOrig(node v) const
Returns the width of original node v.
Definition: PlanRep.h:536
int numberOfNodesInCC() const
Returns the number of nodes in the current connected component.
Definition: PlanRep.h:108
nodeType nodeTypeOf(node v)
Returns the extended node type of v.
Definition: PlanRep.h:239
edgeType brotherPattern()
Definition: PlanRep.h:733
bool isVertex(node v)
Returns true if the node represents a "real" object in the original graph.
Definition: PlanRep.h:229
NodeArray< adjEntry > m_expandAdj
Definition: PlanRep.h:743
int stopEdge() const
Returns the index of (one past) the last edge in this connected component.
Definition: PlanRep.h:137
bool isExpansion(edge e)
Returns true iff edge e is classified as expansion edge.
Definition: PlanRep.h:396
const NodeArray< double > & widthOrig() const
Gives access to the node array of the widths of original nodes.
Definition: PlanRep.h:530
void setBrother(edge e)
Classifies edge e as connection between hierarchy neighbours (fourth level type). ...
Definition: PlanRep.h:423
int startNode() const
Returns the index of the first node in this connected component.
Definition: PlanRep.h:122
EdgeType & typeOf(edge e)
Returns a reference to the type of edge e.
Definition: PlanRep.h:280
Face sets.
Definition: FaceSet.h:138
The namespace for all OGDF objects.
edgeType associationPattern()
Definition: PlanRep.h:730
NodeType
The type of nodes.
Definition: Graph_d.h:525
long long edgeType
int numberOfNodesInCC(int cc) const
Returns the number of nodes in connected component cc.
Definition: PlanRep.h:111
bool isAssClass(edge e)
Returns true iff edge e is classified as connection at an association class.
Definition: PlanRep.h:415
EdgeArray< int > m_expansionEdge
Definition: PlanRep.h:750
const NodeArray< double > & heightOrig() const
Gives access to the node array of the heights of original nodes.
Definition: PlanRep.h:542
void removeEdgePathEmbedded(CombinatorialEmbedding &E, edge eOrig, FaceSetPure &newFaces)
Removes the complete edge path for edge eOrig while preserving the embedding.
Definition: PlanRep.h:659
Combinatorial embeddings of planar graphs with modification functionality.
int stopNode(int cc) const
Returns the index of (one past) the last node in connected component cc.
Definition: PlanRep.h:131
bool isDependency(edge e)
Returns true iff edge e is classified as dependency.
Definition: PlanRep.h:362
void setExpandedNode(node v, node w)
Definition: PlanRep.h:599
NodeArray< NodeType > m_vType
Simple node types.
Definition: PlanRep.h:738
Class for adjacency list elements.
Definition: Graph_d.h:78
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
Definition: basic.h:41
const CCsInfo & ccInfo() const
Returns the connected components info structure.
Definition: PlanRep.h:105
adjEntry & expandAdj(node v)
Definition: PlanRep.h:164
int m_currentCC
The index of the current component.
Definition: PlanRep.h:714
adjEntry m_adjRef
the reference adjacency entry for restoring the edge
Definition: PlanRep.h:72
The parameterized class Stack<E> implements list-based stacks.
Definition: Stack.h:192
Declaration and implementation of list-based stacks (StackPure<E> and Stack<E>).
int startEdge() const
Returns the index of the first edge in this connected component.
Definition: PlanRep.h:134
void setHalfBrother(edge e)
Classifies edge e as connection between ... (fourth level type).
Definition: PlanRep.h:428
Planarized representations (of a connected component) of a graph.
Definition: PlanRep.h:60
Stores a layout of a graph (coordinates of nodes, bend points of edges).
Definition: Layout.h:46