|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
52 namespace energybased {
65 void make_initialisations(
const Graph& G,
double boxlength,
DPoint down_left_corner,
66 int particles_in_leaves,
int precision,
71 void deallocate_memory();
74 void update_boxlength_and_cornercoordinate(
double b_l,
DPoint d_l_c);
104 int power_of_two(
int i);
107 int maxboxindex(
int level);
180 bool deleteRight,
bool isHorizontal);
229 void construct_complete_subtree(
QuadTreeNM& T,
int subtree_depth,
241 void set_particlenumber_in_subtree_entries(
QuadTreeNM& T);
259 bool check_and_delete_degenerated_node(
QuadTreeNM& T);
293 switch (find_sm_cell()) {
295 find_small_cell_iteratively(act_ptr, min, max);
298 find_small_cell_by_formula(act_ptr, min, max);
304 void delete_red_quad_tree_and_count_treenodes(
QuadTreeNM& T);
327 void add_shifted_expansion_to_father_expansion(
QuadTreeNodeNM* act_ptr);
377 void init_binko(
int t);
383 double binko(
int n,
int k);
387 return _tree_construction_way;
391 _tree_construction_way = rtc;
406 void precision(
int p) { _precision = ((p >= 1) ? p : 1); }
The namespace for all OGDF objects.
FruchtermanReingold ExactMethod
needed in case that using_NMM == false
Includes declaration of graph class.
Parameterized base class for points.
double ** BK
holds the binomial coefficients
Declaration of classes GenericPoint, GenericPolyline, GenericLine, GenericSegment,...
int particles_in_leaves() const
std::pair< node, node > split(Graph &G, sync_plan::PipeBij &bij, const EdgeArray< edge > *new_edges=nullptr, const EdgeArray< bool > *reverse_edges=nullptr, node src=nullptr, node tgt=nullptr)
List< DPoint > rep_forces
stores the rep. forces of the last iteration needed for error calculation)
The parameterized class Array2D implements dynamic two-dimensional arrays.
@ Aluru
According to formula by Aluru et al.
FMMMOptions::SmallestCellFinding find_sm_cell() const
Returns the way the smallest quadratic cell that surrounds the particles of a node in the reduced buc...
Helping data structure that stores the information needed to represent the modified quadtree in the N...
void find_small_cell(QuadTreeNodeNM *act_ptr, DPoint min, DPoint max)
Finds the small cell of the actual node using the selected algorithm.
bool using_NMM
Indicates whether the exact method or NMM is used for force calculation (value depends on MIN_NODE_NU...
Declaration of class FruchtermanReingold (computation of forces).
FMMMOptions::SmallestCellFinding _find_small_cell
Doubly linked lists (maintaining the length of the list).
RegisteredArray for nodes, edges and adjEntries of a graph.
Helping data structure that stores the information needed to represent a node of the reduced quad tre...
Data type for general directed graphs (adjacency list representation).
@ Iteratively
Iteratively (in constant time).
FMMMOptions::ReducedTreeConstruction _tree_construction_way
int _precision
precision for p-term multipole expansion
void precision(int p)
The precision p for the p-term multipole expansions.
void particles_in_leaves(int b)
Max. number of particles that are contained in a leaf of the red. quadtree.
FMMMOptions::ReducedTreeConstruction tree_construction_way() const
Returns the way to construct the reduced tree.
Basic declarations, included by all source files.
SmallestCellFinding
Specifies how to calculate the smallest quadratic cell that surrounds the particles of a node in the ...
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
DPoint down_left_corner
down left corner of drawing box
const int max_power_of_2_index
holds max.
Declaration of doubly linked lists and iterators.
ReducedTreeConstruction
Specifies how the reduced bucket quadtree is constructed.
int _particles_in_leaves
max.
Encapsulates a pointer to a list element.
double boxlength
length of drawing box
void tree_construction_way(FMMMOptions::ReducedTreeConstruction rtc)
void find_sm_cell(FMMMOptions::SmallestCellFinding scf)
Declaration of Fast Multipole Multilevel Method (FM^3) options.
int MIN_NODE_NUMBER
The minimum number of nodes for which the forces are calculated using NMM (for lower values the exact...