77 UpwardPlanRep():
GraphCopy(), isAugmented(false), t_hat(nullptr), s_hat(nullptr), extFaceHandle(nullptr), crossings(0)
80 m_isSinkArc.init(*
this,
false);
81 m_isSourceArc.init(*
this,
false);
87 void insertEdgePathEmbedded(
144 std::cout << std::endl <<
"Face UPR " << std::endl;
146 std::cout <<
"face " << f->
index() <<
": ";
149 std::cout << adjNext->
theEdge() <<
"; ";
152 std::cout << std::endl;
155 std::cout <<
"ext. face of the graph is: " << embedding.
externalFace()->
index() << std::endl;
157 std::cout <<
"no ext. face set." << std::endl;
188 void computeSinkSwitches();
197 void constructSinkArcs(
face f,
node t);
node target() const
Returns the target node of the edge.
Takes an acyclic connected non-upward-planar graph and planarizes it, i.e., we obtain an upward-plana...
CombinatorialEmbedding m_Gamma
edge theEdge() const
Returns the edge associated with this adjacency entry.
UpwardPlanRep()
standart constructor
node t_hat
< embedding og this UpwardPlanRep
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
node getSuperSource() const
void init(const Graph &G)
Re-initializes the copy using the graph G.
int indeg() const
Returns the indegree of the node.
adjEntry firstAdj() const
Returns the first adjacency element in the face.
bool isSourceArc(edge e) const
Upward planarized representations (of a connected component) of a graph.
void outputFaces(const CombinatorialEmbedding &embedding) const
bool isAugmented
the UpwardPlanRep is augmented to a single source and single sink graph
adjEntry cyclicSucc() const
Returns the cyclic successor in the adjacency list.
bool augmented() const
return true if graph is augmented to a single source single sink graph
Singly linked lists (maintaining the length of the list).
adjEntry faceCycleSucc() const
Returns the cyclic successor in face.
internal::GraphObjectContainer< FaceElement > faces
The container containing all face objects.
face externalFace() const
Returns the external face.
Dynamic arrays indexed with nodes.
int numberOfCrossings() const
static void copy(const T &from, T &to)
bool isSinkArc(edge e) const
Edge insertion module that inserts each edge optimally into a fixed embedding.
Declaration of graph copy classes.
Faces in a combinatorial embedding.
Class for the representation of edges.
Copies of graphs supporting edge splitting.
Class for the representation of nodes.
node s_hat
the super source
NodeArray< adjEntry > m_sinkSwitchOf
node getSuperSink() const
adjEntry leftInEdge(node v) const
adjEntry sinkSwitchOf(node v)
0 if node v is not a sink switch (not the top sink switch !!) of an internal face. else v is sink-switch of the right face of the adjEntry.
node source() const
Returns the source node of the edge.
const CombinatorialEmbedding & getEmbedding() const
return the upward planar embedding
EdgeArray< bool > m_isSinkArc
int index() const
Returns the index of the face.
The namespace for all OGDF objects.
Combinatorial embeddings of planar graphs with modification functionality.
CombinatorialEmbedding & getEmbedding()
Class for adjacency list elements.
EdgeArray< bool > m_isSourceArc
internal::GraphObjectContainer< AdjElement > adjEntries
The container containing all entries in the adjacency list of this node.