#include <ogdf/energybased/fmmm/FruchtermanReingold.h>
Public Member Functions | |
FruchtermanReingold () | |
Constructor. | |
void | calculate_approx_repulsive_forces (const Graph &G, NodeArray< NodeAttributes > &A, NodeArray< DPoint > &F_rep) |
Grid approximation of rep.forces for each node. | |
void | calculate_exact_repulsive_forces (const Graph &G, NodeArray< NodeAttributes > &A, NodeArray< DPoint > &F_rep) |
Calculate exact rep. forces for each node. | |
void | make_initialisations (double boxlength, DPoint down_left_corner, int grid_quotient) |
Make all initialisations that are needed for FruchtermanReingold. | |
void | update_boxlength_and_cornercoordinate (double b_l, DPoint d_l_c) |
Import updated information of the drawing area. | |
Private Member Functions | |
int | grid_quotient () const |
void | grid_quotient (int p) |
The number k of rows and colums of the grid is sqrt(|V|) / frGridQuotient() (Note that in [FrRe] frGridQuotient() is 2.) | |
Private Attributes | |
int | _grid_quotient |
for coarsening the FrRe-grid | |
double | boxlength |
length of drawing box | |
DPoint | down_left_corner |
down left corner of drawing box | |
int | max_gridindex |
maximum index of a grid row/column | |
Definition at line 44 of file FruchtermanReingold.h.
ogdf::energybased::fmmm::FruchtermanReingold::FruchtermanReingold | ( | ) |
Constructor.
void ogdf::energybased::fmmm::FruchtermanReingold::calculate_approx_repulsive_forces | ( | const Graph & | G, |
NodeArray< NodeAttributes > & | A, | ||
NodeArray< DPoint > & | F_rep | ||
) |
Grid approximation of rep.forces for each node.
void ogdf::energybased::fmmm::FruchtermanReingold::calculate_exact_repulsive_forces | ( | const Graph & | G, |
NodeArray< NodeAttributes > & | A, | ||
NodeArray< DPoint > & | F_rep | ||
) |
Calculate exact rep. forces for each node.
|
inlineprivate |
Definition at line 76 of file FruchtermanReingold.h.
The number k of rows and colums of the grid is sqrt(|V|) / frGridQuotient() (Note that in [FrRe] frGridQuotient() is 2.)
Definition at line 74 of file FruchtermanReingold.h.
void ogdf::energybased::fmmm::FruchtermanReingold::make_initialisations | ( | double | boxlength, |
DPoint | down_left_corner, | ||
int | grid_quotient | ||
) |
Make all initialisations that are needed for FruchtermanReingold.
|
inline |
Import updated information of the drawing area.
Definition at line 61 of file FruchtermanReingold.h.
|
private |
for coarsening the FrRe-grid
Definition at line 67 of file FruchtermanReingold.h.
|
private |
length of drawing box
Definition at line 69 of file FruchtermanReingold.h.
|
private |
down left corner of drawing box
Definition at line 70 of file FruchtermanReingold.h.
|
private |
maximum index of a grid row/column
Definition at line 68 of file FruchtermanReingold.h.