|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
43 class GraphAttributes;
66 bool noise()
const {
return m_noise; }
69 void noise(
bool on) { m_noise = on; }
151 void initialize(ArrayGraph& component);
152 void mainStep(ArrayGraph& component);
153 void mainStep_sse3(ArrayGraph& component);
157 double f_att(
double d) {
return d*d / m_idealEdgeLength; }
158 double f_rep(
double d) {
return m_idealEdgeLength*m_idealEdgeLength / d; }
161 double f_att(
double d) {
return 5.0 * d *
log2(d/m_idealEdgeLength); }
162 double f_rep(
double d) {
return 20.0 / d; }
166 void cool(
double& tx,
double& ty,
int& cF);
The namespace for all OGDF objects.
Stores additional attributes of a graph (like layout information).
double m_minDistCC
The minimal distance between connected components.
double m_idealEdgeLength
The ideal edge length.
Includes declaration of graph class.
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
Array< SList< node > > m_nodesInCC
Fruchterman-Reingold algorithm with (exact) layout.
Singly linked lists (maintaining the length of the list).
Interface of general layout algorithms.
const SList< node > & nodesInCC(int i) const
Declaration of interface for energy-based layout algorithms (class ForceLayoutModule)
void idealEdgeLength(double len)
Sets the ideal edge length to len.
void iterations(int i)
Sets the number of iterations to i.
NodeArray< int > m_mapNode
double idealEdgeLength() const
Returns the ideal edge length.
bool m_noise
Perform random perturbations?
Declaration of singly linked lists and iterators.
The parameterized class Array implements dynamic arrays of type E.
void convTolerance(double tol)
int m_iterations
The number of iterations.
void coolingFunction(CoolingFunction f)
Sets the parameter coolingFunction to f.
int numberOfEdges() const
RegisteredArray for nodes, edges and adjEntries of a graph.
void nodeWeights(bool on)
Switches use of node weights given in GraphAttributtes.
void checkConvergence(bool b)
double pageRatio()
Returns the page ratio.
int iterations() const
Returns the current setting of iterations.
void minDistCC(double x)
Sets the minimum distance between connected components to x.
CoolingFunction m_coolingFunction
The selected cooling function.
node original(int v) const
Basic declarations, included by all source files.
double m_pageRatio
The page ratio.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
CoolingFunction coolingFunction() const
Returns the current setting for the cooling function.
T log2(T x)
Returns the logarithm of x to the base 2.
Declaration and implementation of Array class and Array algorithms.
void noise(bool on)
Sets the parameter noise to on.
int numberOfNodes() const
double minDistCC() const
Returns the minimum distance between connected components.
bool noise() const
Returns the current setting of nodes.
Class for the representation of nodes.
void pageRatio(double x)
Sets the page ration to x.