111 m_leafGroup = (v->
degree() == 1);
114 m_sumW = m_data->
leaves()[v];
115 m_leftAdd = m_rightAdd = 0.0;
119 return m_leafGroup == (v->
degree() == 1);
125 m_sumW += m_data->
leaves()[v];
128 double add()
const {
return m_leftAdd + m_rightAdd; }
136 void computeAdd(
double &D,
double &
W);
195 void FindRoot(
const Graph &G);
196 void ComputeLevels(
const Graph &G);
198 void ComputeAngles(
const Graph &G);
200 void ComputeGrouping(
int i);
Declaration of singly linked lists and iterators.
The parameterized class Array implements dynamic arrays of type E.
double m_outerRadius
The radius of circle bounding the drawing.
RootSelectionType
Selection strategies for root of the tree.
NodeArray< double > m_wedge
The wedge reserved for subtree.
const_reference back() const
Returns a reference to the last element.
Data type for general directed graphs (adjacency list representation).
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
NodeArray< Grouping > m_grouping
void rootSelection(RootSelectionType sel)
Sets the option rootSelection to sel.
RootSelectionType rootSelection() const
Returns the option rootSelection.
int degree() const
Returns the degree of the node (indegree + outdegree).
NodeArray< int > m_level
The level of a node.
NodeArray< double > m_leaves
The weighted number of leaves in subtree.
NodeArray< double > m_diameter
The diameter of a circle bounding a node.
The radial tree layout algorithm.
NodeArray< double > m_angle
The angle of node center (for placement).
iterator pushBack(const E &x)
Adds element x at the end of the list.
Stores additional attributes of a graph (like layout information).
RadialTreeLayout * m_data
Array< double > m_width
The width of a circle.
Doubly linked lists (maintaining the length of the list).
node m_root
The root of the tree.
void levelDistance(double x)
Sets the option levelDistance to x.
NodeArray< node > m_parent
The parent of a node (0 if root).
Group(RadialTreeLayout *data, node v)
int m_numLevels
The number of levels (root is on level 0).
Declaration of interface for layout algorithms (class LayoutModule)
Class for the representation of nodes.
const_reference front() const
Returns a reference to the first element.
#define OGDF_NEW_DELETE
Makes the class use OGDF's memory allocator.
const NodeArray< double > & leaves() const
const NodeArray< double > & diameter() const
void connectedComponentDistance(double x)
Sets the option connectedComponentDistance to x.
Interface of general layout algorithms.
bool isSameType(node v) const
double m_levelDistance
The minimal distance between levels.
double levelDistance() const
Returns the option levelDistance.
Array< SListPure< node > > m_nodes
The nodes at a level.
Array< double > m_radius
The width of a level.
The namespace for all OGDF objects.
SListPure< node > m_nodes
RootSelectionType m_selectRoot
Specifies how to determine the root.
double m_connectedComponentDistance
The minimal distance between trees.
double connectedComponentDistance() const
Returns the option connectedComponentDistance.