48 m_dx = m_dy = 0; m_adj =
nullptr;
51 m_adj = adj; m_dx = m_dy = 0;
60 explicit IOPoints(
const Graph &G) : m_depth(G,0), m_height(G,0), m_in(G), m_out(G),
61 m_mark(G,false), m_pointOf(G,nullptr) { }
68 return m_out[v].size();
71 return m_in[v].size();
91 return m_pointOf[adj];
105 return searchRealForward(m_out[v].begin());
109 return searchRealBackward(m_out[v].rbegin());
113 return searchRealForward(it.
succ());
117 return searchRealBackward(it.
pred());
123 m_pointOf[adj] = &(*m_in[v].pushBack(
InOutPoint(adj)));
127 m_pointOf[adj] = &(*m_out[v].pushBack(
InOutPoint(adj)));
131 m_pointOf[adj] = &(*m_in[v].pushFront(
InOutPoint(adj)));
152 appendInpoint(adj_new);
159 if (!marked(iop.m_adj)) ++i;
165 return (m_out[v].empty()) ? 0 : (-m_out[v].front().m_dx);
169 return (m_out[v].empty()) ? 0 : (m_out[v].back().m_dx);
173 return (m_in[v].empty()) ? 0 : (-m_in[v].front().m_dx);
177 return (m_in[v].empty()) ? 0 : (m_in[v].back().m_dx);
181 return max(inLeft(v), outLeft(v));
185 return max(inRight(v), outRight(v));
189 return (in(v) >= 3) ?
190 max(inLeft(v)+1, outLeft(v)) : maxLeft(v);
194 return (in(v) >= 3) ?
195 max(inRight(v)+1, outRight(v)) : maxRight(v);
200 void numDeg1(
node v,
int &xl,
int &xr,
201 bool doubleCount)
const;
206 void switchBeginOut(
node v);
207 void switchEndOut (
node v);
int maxRight(node v) const
bool isChain(node v) const
AdjEntryArray< bool > m_mark
ListIteratorBase< E, isConst, isReverse > succ() const
Returns successor iterator.
int inRight(node v) const
Data type for general directed graphs (adjacency list representation).
Representation of an in- or outpoint.
int outdeg() const
Returns the outdegree of the node.
const List< InOutPoint > & outpoints(node v) const
void appendInpoint(adjEntry adj)
Declaration of a base class for planar representations of graphs and cluster graphs.
const List< InOutPoint > & inpoints(node v) const
An array that keeps track of the number of inserted elements; also usable as an efficient stack...
int maxPlusRight(node v) const
ListConstIterator< InOutPoint > prevRealOut(ListConstIterator< InOutPoint > it) const
int outRight(node v) const
Representation of in- and outpoint lists.
NodeArray< int > m_height
ListConstIterator< InOutPoint > nextRealOut(ListConstIterator< InOutPoint > it) const
ListIteratorBase< E, isConst, isReverse > pred() const
Returns predecessor iterator.
Doubly linked lists (maintaining the length of the list).
NodeArray< List< InOutPoint > > m_out
void appendOutpoint(adjEntry adj)
int outLeft(node v) const
void changeEdge(node v, adjEntry adj_new)
AdjEntryArray< InOutPoint * > m_pointOf
Class for the representation of nodes.
bool marked(adjEntry adj) const
int maxPlusLeft(node v) const
Encapsulates a pointer to a list element.
List< InOutPoint > & outpoints(node v)
void setOutDx(ListIterator< InOutPoint > it, int dx)
ListConstIterator< InOutPoint > lastRealOut(node v) const
void pushInpoint(adjEntry adj)
The namespace for all OGDF objects.
void setOutCoord(ListIterator< InOutPoint > it, int dx, int dy)
List< InOutPoint > & inpoints(node v)
int maxLeft(node v) const
void setInCoord(ListIterator< InOutPoint > it, int dx, int dy)
adjEntry firstAdj() const
Returns the first entry in the adjaceny list.
const InOutPoint * pointOf(adjEntry adj) const
ListConstIterator< InOutPoint > firstRealOut(node v) const
node theNode() const
Returns the node whose adjacency list contains this element.
Class for adjacency list elements.
Planarized representations (of a connected component) of a graph.