85 virtual const Graph &originalGraph()
const=0;
91 virtual edge rootEdge()
const=0;
94 virtual node rootNode()
const=0;
97 virtual int numberOfSNodes()
const=0;
100 virtual int numberOfPNodes()
const=0;
103 virtual int numberOfRNodes()
const=0;
130 virtual edge copyOfReal(
edge e)
const=0;
138 if (m_cpV ==
nullptr) m_cpV =
new NodeArray<node>(originalGraph(),
nullptr);
150 while (!m_cpVAdded.empty()) cpV[m_cpVAdded.popFrontRet()] =
nullptr;
175 if(e->
source() != src) skeleton(vT).getGraph().reverseEdge(e);
180 Graph &M = skeleton(vT).getGraph();
205 node &vP = (*m_cpV)[vOrig];
207 m_cpVAdded.pushBack(vOrig);
node target() const
Returns the target node of the edge.
Declaration of singly linked lists and iterators.
Data type for general directed graphs (adjacency list representation).
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
virtual node original(node v) const =0
Returns the vertex in the original graph G that corresponds to v.
void directSkEdge(node vT, edge e, node src)
Declaration of class Skeleton.
virtual edge split(edge e)
Splits edge e into two edges introducing a new node.
edge referenceEdge() const
Returns the reference edge of S in M.
Singly linked lists (maintaining the length of the list).
Skeleton graphs of nodes in an SPQR-tree.
void init(node vT)
Initialization of a pertinent graph of tree node vT.
Pertinent graphs of nodes in an SPQR-tree.
edge m_vEdge
reference edge (in m_P)
void reverseEdge(edge e)
Reverses the edge e, i.e., exchanges source and target node.
Dynamic arrays indexed with nodes.
NodeType
The type of a tree node in T.
edge m_skRefEdge
reference edge (in skeleton(m_vT))
edge cpAddEdge(edge eOrig, PertinentGraph &Gp) const
Add an edge to Gp corresponding to eOrig.
Doubly linked lists (maintaining the length of the list).
edge newEdge(node v, node w)
Creates a new edge (v,w) and returns it.
Class for the representation of edges.
Class for the representation of nodes.
NodeArray< node > * m_cpV
node in pertinent graph corresponding to an original node (auxiliary member)
Declaration of class PertinentGraph.
void pertinentGraph(node v, PertinentGraph &Gp) const
Returns the pertinent graph of tree node v in Gp.
NodeArray< node > m_origV
corresp.
SList< node > m_cpVAdded
list of added nodes (auxiliary member)
node source() const
Returns the source node of the edge.
Linear-time implementation of static SPQR-trees.
for every hyperedge e a minimal subcubic tree connecting all hypernodes incident with e together is a...
The namespace for all OGDF objects.
EdgeArray< edge > m_origE
corresp.
node newNode()
Creates a new node and returns it.
void replaceSkEdgeByPeak(node vT, edge e)
node cpAddNode(node vOrig, PertinentGraph &Gp) const
Add a node to Gp corresponding to vOrig if required.
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.