253 int fails()
const {
return m_fails; }
266 int runs()
const {
return m_runs; }
354#ifndef OGDF_MEMORY_POOL_NTS
434 int numCC()
const {
return m_numCC; };
Declaration of interface for algorithms that arrange/pack layouts of connected components.
Declares ClusterGraphAttributes, an extension of class GraphAttributes, to store clustergraph layout ...
Declaration of ExtendedNestingGraph.
Declaration of interface for hierarchy layout algorithms (3.
Declaration of interface hierarchy layout algorithms (3.
Declaration of interface for layout algorithms (class LayoutModule)
Declaration of interface for ranking algorithms.
Declaration of interface for two-layer crossing minimization algorithms for Simultaneous Drawing.
The parameterized class Array implements dynamic arrays of type E.
Base class of algorithms that arrange/pack layouts of connected components.
Stores additional attributes of a clustered graph (like layout information).
Dynamic arrays indexed with edges.
Stores additional attributes of a graph (like layout information).
Interface of hierarchy layout algorithms for cluster graphs.
Representation of proper hierarchies used by Sugiyama-layout.
Interface of hierarchy layout algorithms.
Representation of proper hierarchies used by Sugiyama-layout.
Interface of crossing minimization algorithms for layered graphs.
Interface of general layout algorithms.
Dynamic arrays indexed with nodes.
Interface of algorithms for computing a node ranking.
Sugiyama's layout algorithm.
void setLayout(HierarchyLayoutModule *pLayout)
Sets the module option for the computation of the final layout.
const NodeArray< int > & compGC() const
double m_pageRatio
Option for desired page ratio.
int m_runs
Option for number of runs.
int maxLevelSize()
Return the max. number of elements on a layer.
int m_nCrossings
Number of crossings in computed layout.
void call(ClusterGraphAttributes &CGA)
Calls the layout algorithm for clustered graph CGA.
void arrangeCCs(bool bArrange)
Sets the options arrangeCCs to bArrange.
double minDistCC() const
Returns the current setting of option minDistCC (distance between components).
int fails() const
Returns the current setting of option fails.
std::unique_ptr< TwoLayerCrossMinSimDraw > m_crossMinSimDraw
void alignSiblings(bool b)
Sets the option alignSiblings to b.
void permuteFirst(bool b)
double pageRatio() const
Returns the current setting of option pageRation.
int numberOfCrossings() const
Returns the number of crossings in the computed layout (usual graph).
void maxThreads(unsigned int n)
Sets the maximal number of used threads to n.
RCCrossings traverseBottomUp(ExtendedNestingGraph &H)
void setPacker(CCLayoutPackModule *pPacker)
Sets the module option for the arrangement of connected components.
bool m_alignSiblings
Option for aligning siblings in inheritance trees.
bool arrangeCCs() const
Returns the current setting of option arrangeCCs.
unsigned int maxThreads() const
Returns the maximal number of used threads.
RCCrossings traverseTopDown(ExtendedNestingGraph &H)
std::unique_ptr< RankingModule > m_ranking
the ranking module (level assignment)
bool useSubgraphs() const
Returns true iff subgraphs for simultaneous drawing are set.
unsigned int m_maxThreads
The maximal number of used threads.
RCCrossings numberOfCrossingsCluster() const
Returns the number of crossings in the computed layout (cluster graph).
double m_timeReduceCrossings
std::unique_ptr< LayeredCrossMinModule > m_crossMin
the module for two-layer crossing minimization
void doCall(GraphAttributes &AG, bool umlCall, NodeArray< int > &rank)
void runs(int nRuns)
Sets the option runs to nRuns.
bool m_arrangeCCs
Option for laying out components separately.
void minDistCC(double x)
Sets the option minDistCC to x.
bool m_alignBaseClasses
Option for aligning base classes.
const HierarchyLevelsBase * reduceCrossings(Hierarchy &H)
bool alignBaseClasses() const
Returns the current setting of option alignBaseClasses.
std::unique_ptr< CCLayoutPackModule > m_packer
The module for arranging connected components.
void setCrossMin(LayeredCrossMinModule *pCrossMin)
Sets the module option for the two-layer crossing minimization.
RCCrossings m_nCrossingsCluster
int runs() const
Returns the current setting of option runs.
bool m_transpose
Option for switching on transposal heuristic.
std::unique_ptr< HierarchyLayoutModule > m_layout
the hierarchy layout module (final coordinate assignment)
void reduceCrossings(ExtendedNestingGraph &H)
double timeReduceCrossings()
virtual void call(GraphAttributes &GA) override
Calls the layout algorithm for graph GA.
void alignBaseClasses(bool b)
Sets the option alignBaseClasses to b.
int numberOfLevels()
Return the number of layers/levels}.
void pageRatio(double x)
Sets the option pageRatio to x.
void callUML(GraphAttributes &GA)
std::unique_ptr< HierarchyClusterLayoutModule > m_clusterLayout
the hierarchy cluster layout module (final coordinate assignment for clustered graphs)
bool permuteFirst() const
void fails(int nFails)
Sets the option fails to nFails.
EdgeArray< uint32_t > * m_subgraphs
Defines the subgraphs for simultaneous drawing.
Array< bool > m_levelChanged
bool transpose() const
Returns the current setting of option transpose.
void setClusterLayout(HierarchyClusterLayoutModule *pLayout)
Sets the module option for the computation of the final layout for clustered graphs.
void setSubgraphs(EdgeArray< uint32_t > *esg)
Sets the subgraphs for simultaneous drawing.
void setRanking(RankingModule *pRanking)
Sets the module option for the node ranking (layer assignment).
const EdgeArray< uint32_t > * subgraphs() const
double m_minDistCC
Option for distance between connected components.
NodeArray< int > m_compGC
SugiyamaLayout()
Creates an instance of SugiyamaLayout and sets options to default values.
void call(GraphAttributes &GA, NodeArray< int > &rank)
Calls the layout algorithm for graph GA with a given level assignment.
bool alignSiblings() const
Returns the current setting of option alignSiblings.
void transpose(bool bTranspose)
Sets the option transpose to bTranspose.
int m_fails
Option for maximal number of fails.
void doCall(GraphAttributes &AG, bool umlCall)
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.