174 const bool downward,
const bool leftToRight);
201 const bool leftToRight,
bool downward);
Declaration of Hierarchy class.
Declaration of interface hierarchy layout algorithms (3.
Declaration and implementation of NodeArray class.
Coordinate assignment phase for the Sugiyama algorithm by Ulrik Brandes and Boris Köpf.
void computeBlockWidths(const GraphCopy &GC, const GraphAttributes &GCA, NodeArray< node > &root, NodeArray< double > &blockWidth)
Computes the width of each block, i.e., the maximal width of a node in the block, and stores it in bl...
double m_minXSep
stores the option node distance.
void verticalAlignment(const HierarchyLevelsBase &levels, NodeArray< node > &root, NodeArray< node > &align, const NodeArray< NodeArray< bool > > &type1Conflicts, const bool downward, const bool leftToRight)
Align each node to a node on the next higher level.
void markType1Conflicts(const HierarchyLevelsBase &levels, bool downward, NodeArray< NodeArray< bool > > &type1Conflicts)
Preprocessing step to find all type1 conflicts.
void leftToRight(bool b)
Sets the option left-to-right to b.
node pred(const node v, const HierarchyLevelsBase &levels, const bool leftToRight)
Predecessor of v on the same level,.
void placeBlock(node v, NodeArray< node > &sink, NodeArray< double > &shift, NodeArray< double > &x, const NodeArray< node > &align, const HierarchyLevelsBase &levels, const NodeArray< double > &blockWidth, const NodeArray< node > &root, const bool leftToRight)
Calculate the coordinate for root nodes (placing)
double layerDistance() const
Returns the option layer distance.
double nodeDistance() const
Returns the option node distance.
void horizontalCompactation(const NodeArray< node > &align, const HierarchyLevelsBase &levels, const NodeArray< node > &root, const NodeArray< double > &blockWidth, NodeArray< double > &x, const bool leftToRight, bool downward)
Calculate the coordinates for each node.
virtual void doCall(const HierarchyLevelsBase &levels, GraphAttributes &AGC) override
Implements the actual algorithm call.
node virtualTwinNode(const HierarchyLevelsBase &levels, const node v, const HierarchyLevelsBase::TraversingDir dir) const
The twin of an inner Segment.
void balanced(bool b)
Sets the option balanced to b.
FastSimpleHierarchyLayout & operator=(const FastSimpleHierarchyLayout &)
Assignment operator.
bool balanced() const
Returns the option balanced.
bool m_leftToRight
stores the option left-to-right.
FastSimpleHierarchyLayout()
Creates an instance of fast simple hierarchy layout.
void layerDistance(double dist)
Sets the option layer distance to dist.
void downward(bool d)
Sets the option downward to d.
bool leftToRight() const
Returns the option left-to-right.
virtual ~FastSimpleHierarchyLayout()
FastSimpleHierarchyLayout(const FastSimpleHierarchyLayout &)
Copy constructor.
bool m_balanced
stores the option balanced.
void nodeDistance(double dist)
Sets the option node distance to dist.
bool m_downward
stores the option downward.
bool downward() const
Returns the option downward.
double m_ySep
stores the option layer distance.
Stores additional attributes of a graph (like layout information).
Copies of graphs supporting edge splitting.
Interface of hierarchy layout algorithms.
Dynamic arrays indexed with nodes.
Class for the representation of nodes.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.