61 bool noise()
const {
return m_noise; }
64 void noise(
bool on) { m_noise = on; }
152 double f_att(
double d) {
return d*
d / m_idealEdgeLength; }
153 double f_rep(
double d) {
return m_idealEdgeLength*m_idealEdgeLength /
d; }
156 double f_att(
double d) {
return 5.0 *
d * log2(
d/m_idealEdgeLength); }
157 double f_rep(
double d) {
return 20.0 /
d; }
Declaration of interface for energy-based layout algorithms (class ForceLayoutModule)
Declaration of class GraphAttributes which extends a Graph by additional attributes.
Declaration of singly linked lists and iterators.
The parameterized class Array implements dynamic arrays of type E.
Interface of general layout algorithms.
Stores additional attributes of a graph (like layout information).
Dynamic arrays indexed with nodes.
Class for the representation of nodes.
Singly linked lists (maintaining the length of the list).
Array< SList< node > > m_nodesInCC
ArrayGraph(GraphAttributes &ga)
int numberOfEdges() const
int numberOfNodes() const
const SList< node > & nodesInCC(int i) const
node original(int v) const
NodeArray< int > m_mapNode
Fruchterman-Reingold algorithm with (exact) layout.
bool noise() const
Returns the current setting of nodes.
double pageRatio()
Returns the page ratio.
SpringEmbedderFRExact()
Creates an instance of Fruchterman/Reingold (exact) layout.
double minDistCC() const
Returns the minimum distance between connected components.
void initialize(ArrayGraph &component)
void coolingFunction(CoolingFunction f)
Sets the parameter coolingFunction to f.
int m_iterations
The number of iterations.
double m_minDistCC
The minimal distance between connected components.
CoolingFunction coolingFunction() const
Returns the current setting for the cooling function.
void convTolerance(double tol)
bool m_noise
Perform random perturbations?
void iterations(int i)
Sets the number of iterations to i.
void noise(bool on)
Sets the parameter noise to on.
double m_pageRatio
The page ratio.
double idealEdgeLength() const
Returns the ideal edge length.
void checkConvergence(bool b)
virtual void call(GraphAttributes &GA) override
Calls the layout algorithm for graph attributes GA.
CoolingFunction m_coolingFunction
The selected cooling function.
int iterations() const
Returns the current setting of iterations.
void nodeWeights(bool on)
Switches use of node weights given in GraphAttributtes.
void minDistCC(double x)
Sets the minimum distance between connected components to x.
void idealEdgeLength(double len)
Sets the ideal edge length to len.
void pageRatio(double x)
Sets the page ration to x.
double m_idealEdgeLength
The ideal edge length.
void mainStep_sse3(ArrayGraph &component)
void mainStep(ArrayGraph &component)
void cool(double &tx, double &ty, int &cF)
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.