126 bool isRedundant(
int x1,
int y1,
int x2,
int y2,
int x3,
int y3);
MixedModelBase(PlanRep &PG, GridLayout &gridLayout)
Representation of a graph's grid layout.
edge theEdge() const
Returns the edge associated with this adjacency entry.
bool exists(adjEntry adj)
bool hasLeft(int k) const
Determine if the kth set in the ordered partition has a "real" left vertex.
void placeNodes()
Implements the placement step. Computes x[v] and y[v].
Base class for modules that compute a shelling order of a graph.
virtual ~MixedModelBase()
Representation of an in- or outpoint.
void setBends()
Assigns polylines to edges of the original graph and computes the x- and y-coordinates of deg-1-nodes...
void computeOrder(AugmentationModule &augmenter, EmbedderModule *pEmbedder, adjEntry adjExternal, ShellingOrderModule &compOrder)
Computes the ordered partition (incl. m_leftOp[k], em_rightOp[k]) and constructs the in- and outpoint...
Declaration of a base class for planar representations of graphs and cluster graphs.
NodeArray< ListConstIterator< InOutPoint > > m_nextRight
void removeDeg1Nodes()
Removes degree-1 nodes and store informations for restoring them.
NodeArray< ListConstIterator< InOutPoint > > m_nextLeft
Declaration of interface for embedder for graphs.
void print(std::ostream &os, const InOutPoint &iop)
void printInOutPoints(std::ostream &os)
Representation of in- and outpoint lists.
void firstPoint(int &x, int &y, adjEntry adj)
Dynamic arrays indexed with nodes.
MixedModelBase & operator=(const MixedModelBase &)=delete
void postprocessing2()
Tries to reduce the number of bends by moving degree-2 nodes on bend points.
Declaration of class GridLayout.
GridLayout & m_gridLayout
void assignIopCoords()
Computes the relative coordinates of the in- and outpoints, incl. height(v), depth(v).
void printNodeCoords(std::ostream &os)
Declares the base class ShellingOrderModule for modules that compute a shelling order of a graph...
void postprocessing1()
Tries to reduce the number of bends by changing the outpoints of nodes with indeg and outdeg 2...
void computeXCoords()
Computes the absolute x-coordinates x[v] of all nodes in the ordering, furthermore dyla[k] and dyra[k...
Array< ListConstIterator< InOutPoint > > m_leftOp
Array< ListConstIterator< InOutPoint > > m_rightOp
Declaration of interface for graph augmentation algorithms.
Declaration of classes InOutPoint and IOPoints which implement the management of in-/out-points.
void computeYCoords()
Computes the absolute y-coordinates y[v] of all nodes in the ordering.
bool isRedundant(int x1, int y1, int x2, int y2, int x3, int y3)
The base class for graph augmentation algorithms.
The namespace for all OGDF objects.
Base class for embedder algorithms.
Declaration of shelling order used by the Mixed-Model layout algorithm.
void printMMOrder(std::ostream &os)
Functions for debugging output.
Stack< PlanRep::Deg1RestoreInfo > m_deg1RestoreStack
bool isDummy(node v) const
Returns true iff v has no corresponding node in the original graph.
bool hasRight(int k) const
Determine if the kth set in the ordered partition has a "real" right vertex.
Class for adjacency list elements.
The parameterized class Stack<E> implements list-based stacks.
Planarized representations (of a connected component) of a graph.