120 m_ranking.reset(opRank);
134 m_layout.reset(pLayout);
139 m_ranking.reset(pRanking);
178 for(
node s : sources)
179 postProcessing_reduceLED(H, levels, s);
declaration and implementation of the third phase of sugiyama
Declaration of interface for layout algorithms for a UpwardPlanRep.
int numberOfLayers()
Return the number of layers/levels. Not implemented if use methode callSimple(..).
The parameterized class Array implements dynamic arrays of type E.
double layerDistance() const
Returns the option layer distance.
Representation of proper hierarchies used by Sugiyama-layout.
Data type for general directed graphs (adjacency list representation).
NodeArray< bool > crossed
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
void setLayout(HierarchyLayoutModule *pLayout)
Declaration of HierarchyLevels class.
Declaration and implementation of the optimal third phase of the Sugiyama algorithm.
double nodeDistance() const
Returns the option node distance.
Declaration of a base class for planar representations of graphs and cluster graphs.
Upward planarized representations (of a connected component) of a graph.
Declaration of interface hierarchy layout algorithms (3.
An array that keeps track of the number of inserted elements; also usable as an efficient stack...
Interface of hierarchy layout algorithms.
std::unique_ptr< HierarchyLayoutModule > m_layout
Declaration of optimal ranking algorithm for Sugiyama algorithm.
bool left(node vUPR1, const List< edge > &chain1, node vUPR2, const List< edge > &chain2) const
Returns true if vUPR1 is on the left-hand side of vUPR2 according to m_UPR.
ArrayBuffer< node > m_dummies
bool separateMultiEdges() const
Returns the current setting of option separateMultiEdges.
Coordinate assignment phase for the Sugiyama algorithm by Buchheim et al.
void setRanking(RankingModule *pRanking)
Stores additional attributes of a graph (like layout information).
Interface of hierarchy layout algorithms.
Class for the representation of edges.
Declaration of interface for ranking algorithms.
The optimal ranking algorithm.
Class for the representation of nodes.
int numberOfCrossings() const
bool fixedLayerDistance() const
Returns the option fixed layer distance.
bool checkUp(node vUPR, int level) const
Returns true iff there is a node above vUPR with rank level or lower.
std::unique_ptr< RankingModule > m_ranking
OrderComparer(const UpwardPlanRep &_UPR, Hierarchy &_H)
bool less(node vH1, node vH2) const
Returns true iff vH1 and vH2 are placed on the same layer and node vH1 has to drawn on the left-hand ...
void postProcessing_reduceLED(Hierarchy &H, HierarchyLevels &levels, const List< node > &sources)
reduce the long edge dummies (LED)
int maxLayerSize()
Return the max. number of elements on a layer. Not implemented if use methode callSimple(..).
void dfs_LR(edge e, NodeArray< bool > &visited, NodeArray< int > &dfsNum, int &num)
Traverses with dfs using edge order from left to right and compute the dfs number.
The namespace for all OGDF objects.
const UpwardPlanRep & m_UPR
Interface of algorithms for computing a node ranking.
Class for adjacency list elements.
NodeArray< int > m_dfsNum
Representation of proper hierarchies used by Sugiyama-layout.