Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

UpwardPlanarityEmbeddedDigraph.h
Go to the documentation of this file.
1 
34 #pragma once
35 
36 #include <ogdf/basic/Graph_d.h>
37 #include <ogdf/basic/Graph.h>
38 #include <ogdf/basic/List.h>
39 #include <ogdf/basic/FaceArray.h>
41 
42 namespace ogdf {
43 
45 public:
46  //constructor
47  explicit UpwardPlanarityEmbeddedDigraph(const Graph &H);
48 
49 private:
50  //copy of the Input-Graph
51  const Graph &m_G;
52  //super-source and super-sink of the flow-network
54  //flow-network
56  //combinatorial embedding of G
58  //flow-values of the faces
60  //annotations for the construction of the flow-network
66 
67 public:
68  //tests whether the embedded Digraph is upward planar by using the private class methods
69  //returns true iff G is upward planar observing the fixed embedding
71  //get the set of feasible external faces (represented by the first AdjEntry) if G is upward planar observing the fixed embedding
72  bool isUpwardPlanarEmbedded(List<adjEntry> &possibleExternalFaces);
73 
74 private:
75  //tests whether the embedded Digraph is upward planar
76  //val = true forces a break if the first feasible external face was found
77  void isUpwardPlanarEmbedded(const bool val, List<adjEntry> &possibleExternalFaces);
78  //constructs flow-network of the corresponding Graph G
79  void constructNetwork(EdgeArray<int> &capacity, EdgeArray<int> &flow);
80  //tests whether a flow of power r is possible in the flow-network by executing augmentation steps
81  bool isFlow(EdgeArray<int> &capacity, EdgeArray<int> &flow, const int r);
82  //returns a feasible augmentation path
83  void getPath(ArrayBuffer<node> &st, EdgeArray<int> &capacity, EdgeArray<int> &flow);
84  //returns the value for one augmentation step
85  int getMin(ArrayBuffer<node> stack, EdgeArray<int> &capacity, EdgeArray<int> &flow);
86 };
87 
88 }
void constructNetwork(EdgeArray< int > &capacity, EdgeArray< int > &flow)
bool isFlow(EdgeArray< int > &capacity, EdgeArray< int > &flow, const int r)
Data type for general directed graphs (adjacency list representation).
Definition: Graph_d.h:492
void getPath(ArrayBuffer< node > &st, EdgeArray< int > &capacity, EdgeArray< int > &flow)
Combinatorial embeddings of planar graphs.
An array that keeps track of the number of inserted elements; also usable as an efficient stack...
Definition: Array.h:45
declaration and implementation of FaceArray class
Declaration of CombinatorialEmbedding and face.
int getMin(ArrayBuffer< node > stack, EdgeArray< int > &capacity, EdgeArray< int > &flow)
Dynamic arrays indexed with nodes.
Definition: Graph_d.h:438
Doubly linked lists (maintaining the length of the list).
Definition: List.h:40
Class for the representation of nodes.
Definition: Graph_d.h:169
Pure declaration header, find template implementation in Graph.h.
Includes declaration of graph class.
The namespace for all OGDF objects.
UpwardPlanarityEmbeddedDigraph(const Graph &H)
const ConstCombinatorialEmbedding m_combEmb
Declaration of doubly linked lists and iterators.