Fruchterman-Reingold algorithm with (exact) layout. More...
#include <ogdf/energybased/SpringEmbedderFRExact.h>
 Inheritance diagram for ogdf::SpringEmbedderFRExact:
 Inheritance diagram for ogdf::SpringEmbedderFRExact:| Classes | |
| class | ArrayGraph | 
| Public Types | |
| enum class | CoolingFunction { Factor , Logarithmic } | 
| Public Member Functions | |
| SpringEmbedderFRExact () | |
| Creates an instance of Fruchterman/Reingold (exact) layout. | |
| virtual void | call (GraphAttributes &GA) override | 
| Calls the layout algorithm for graph attributes GA. | |
| bool | checkConvergence () | 
| void | checkConvergence (bool b) | 
| void | convTolerance (double tol) | 
| CoolingFunction | coolingFunction () const | 
| Returns the current setting for the cooling function. | |
| void | coolingFunction (CoolingFunction f) | 
| Sets the parameter coolingFunction to f. | |
| double | idealEdgeLength () const | 
| Returns the ideal edge length. | |
| void | idealEdgeLength (double len) | 
| Sets the ideal edge length to len. | |
| int | iterations () const | 
| Returns the current setting of iterations. | |
| void | iterations (int i) | 
| Sets the number of iterations to i. | |
| double | minDistCC () const | 
| Returns the minimum distance between connected components. | |
| void | minDistCC (double x) | 
| Sets the minimum distance between connected components to x. | |
| void | nodeWeights (bool on) | 
| Switches use of node weights given in GraphAttributtes. | |
| bool | noise () const | 
| Returns the current setting of nodes. | |
| void | noise (bool on) | 
| Sets the parameter noise to on. | |
| double | pageRatio () | 
| Returns the page ratio. | |
| void | pageRatio (double x) | 
| Sets the page ration to x. | |
|  Public Member Functions inherited from ogdf::ForceLayoutModule | |
| ForceLayoutModule () | |
| Initializes a force layout module. | |
| virtual | ~ForceLayoutModule () | 
| virtual void | call (MultilevelGraph &MLG) | 
| Computes a layout of graph MLG. | |
|  Public Member Functions inherited from ogdf::LayoutModule | |
| LayoutModule () | |
| Initializes a layout module. | |
| virtual | ~LayoutModule () | 
| void | operator() (GraphAttributes &GA) | 
| Computes a layout of graph GA. | |
| Private Member Functions | |
| void | cool (double &tx, double &ty, int &cF) | 
| void | initialize (ArrayGraph &component) | 
| double | log2 (double x) | 
| void | mainStep (ArrayGraph &component) | 
| void | mainStep_sse3 (ArrayGraph &component) | 
| double | mylog2 (int x) | 
| Private Attributes | |
| bool | m_checkConvergence | 
| double | m_convTolerance | 
| double | m_coolFactor_x | 
| double | m_coolFactor_y | 
| CoolingFunction | m_coolingFunction | 
| The selected cooling function. | |
| double | m_idealEdgeLength | 
| The ideal edge length. | |
| int | m_iterations | 
| The number of iterations. | |
| double | m_minDistCC | 
| The minimal distance between connected components. | |
| bool | m_noise | 
| Perform random perturbations? | |
| double | m_pageRatio | 
| The page ratio. | |
| double | m_txNull | 
| double | m_tyNull | 
| bool | m_useNodeWeight | 
Fruchterman-Reingold algorithm with (exact) layout.
Definition at line 46 of file SpringEmbedderFRExact.h.
| 
 | strong | 
| Enumerator | |
|---|---|
| Factor | |
| Logarithmic | |
Definition at line 48 of file SpringEmbedderFRExact.h.
| ogdf::SpringEmbedderFRExact::SpringEmbedderFRExact | ( | ) | 
Creates an instance of Fruchterman/Reingold (exact) layout.
| 
 | overridevirtual | 
Calls the layout algorithm for graph attributes GA. 
Implements ogdf::ForceLayoutModule.
| 
 | inline | 
Definition at line 100 of file SpringEmbedderFRExact.h.
| 
 | inline | 
Definition at line 98 of file SpringEmbedderFRExact.h.
| 
 | inline | 
Definition at line 102 of file SpringEmbedderFRExact.h.
| 
 | private | 
| 
 | inline | 
Returns the current setting for the cooling function.
Definition at line 75 of file SpringEmbedderFRExact.h.
| 
 | inline | 
Sets the parameter coolingFunction to f. 
Definition at line 78 of file SpringEmbedderFRExact.h.
| 
 | inline | 
Returns the ideal edge length.
Definition at line 81 of file SpringEmbedderFRExact.h.
| 
 | inline | 
Sets the ideal edge length to len. 
Definition at line 84 of file SpringEmbedderFRExact.h.
| 
 | private | 
| 
 | inline | 
Returns the current setting of iterations.
Definition at line 57 of file SpringEmbedderFRExact.h.
| 
 | inline | 
Sets the number of iterations to i. 
Definition at line 60 of file SpringEmbedderFRExact.h.
| 
 | inlineprivate | 
Definition at line 140 of file SpringEmbedderFRExact.h.
| 
 | private | 
| 
 | private | 
| 
 | inline | 
Returns the minimum distance between connected components.
Definition at line 87 of file SpringEmbedderFRExact.h.
| 
 | inline | 
Sets the minimum distance between connected components to x. 
Definition at line 90 of file SpringEmbedderFRExact.h.
| 
 | inlineprivate | 
Definition at line 142 of file SpringEmbedderFRExact.h.
| 
 | inline | 
Switches use of node weights given in GraphAttributtes.
Definition at line 72 of file SpringEmbedderFRExact.h.
| 
 | inline | 
Returns the current setting of nodes.
Definition at line 66 of file SpringEmbedderFRExact.h.
| 
 | inline | 
Sets the parameter noise to on. 
Definition at line 69 of file SpringEmbedderFRExact.h.
| 
 | inline | 
Returns the page ratio.
Definition at line 93 of file SpringEmbedderFRExact.h.
| 
 | inline | 
Sets the page ration to x. 
Definition at line 96 of file SpringEmbedderFRExact.h.
| 
 | private | 
Definition at line 191 of file SpringEmbedderFRExact.h.
| 
 | private | 
Definition at line 192 of file SpringEmbedderFRExact.h.
| 
 | private | 
Definition at line 177 of file SpringEmbedderFRExact.h.
| 
 | private | 
Definition at line 178 of file SpringEmbedderFRExact.h.
| 
 | private | 
The selected cooling function.
Definition at line 170 of file SpringEmbedderFRExact.h.
| 
 | private | 
The ideal edge length.
Definition at line 180 of file SpringEmbedderFRExact.h.
| 
 | private | 
The number of iterations.
Definition at line 168 of file SpringEmbedderFRExact.h.
| 
 | private | 
The minimal distance between connected components.
Definition at line 181 of file SpringEmbedderFRExact.h.
| 
 | private | 
Perform random perturbations?
Definition at line 169 of file SpringEmbedderFRExact.h.
| 
 | private | 
The page ratio.
Definition at line 182 of file SpringEmbedderFRExact.h.
| 
 | private | 
Definition at line 187 of file SpringEmbedderFRExact.h.
| 
 | private | 
Definition at line 188 of file SpringEmbedderFRExact.h.
| 
 | private | 
Definition at line 190 of file SpringEmbedderFRExact.h.