Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

FruchtermanReingold.h
Go to the documentation of this file.
1 
32 #pragma once
33 
34 #include <ogdf/basic/Graph.h>
35 #include <ogdf/basic/basic.h>
36 #include <ogdf/basic/geometry.h>
37 
38 namespace ogdf::energybased::fmmm {
39 class NodeAttributes;
40 } // namespace ogdf::energybased::fmmm
41 
42 namespace ogdf {
43 namespace energybased {
44 namespace fmmm {
45 
47 public:
50 
52  void calculate_exact_repulsive_forces(const Graph& G, NodeArray<NodeAttributes>& A,
53  NodeArray<DPoint>& F_rep);
54 
56  void calculate_approx_repulsive_forces(const Graph& G, NodeArray<NodeAttributes>& A,
57  NodeArray<DPoint>& F_rep);
58 
60  void make_initialisations(double boxlength, DPoint down_left_corner, int grid_quotient);
61 
64  boxlength = b_l;
65  down_left_corner = d_l_c;
66  }
67 
68 private:
71  double boxlength;
73 
76  void grid_quotient(int p) { _grid_quotient = ((0 <= p) ? p : 2); }
77 
78  int grid_quotient() const { return _grid_quotient; }
79 };
80 
81 }
82 }
83 }
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
Graph.h
Includes declaration of graph class.
ogdf::GenericPoint< double >
geometry.h
Declaration of classes GenericPoint, GenericPolyline, GenericLine, GenericSegment,...
ogdf::energybased::fmmm
Definition: common.h:43
ogdf::whaType::A
@ A
ogdf::energybased::fmmm::FruchtermanReingold::down_left_corner
DPoint down_left_corner
down left corner of drawing box
Definition: FruchtermanReingold.h:72
ogdf::energybased::fmmm::FruchtermanReingold::max_gridindex
int max_gridindex
maximum index of a grid row/column
Definition: FruchtermanReingold.h:70
ogdf::energybased::fmmm::FruchtermanReingold
Definition: FruchtermanReingold.h:46
ogdf::energybased::fmmm::FruchtermanReingold::grid_quotient
void grid_quotient(int p)
The number k of rows and colums of the grid is sqrt(|V|) / frGridQuotient() (Note that in [FrRe] frGr...
Definition: FruchtermanReingold.h:76
ogdf::internal::GraphRegisteredArray
RegisteredArray for nodes, edges and adjEntries of a graph.
Definition: Graph_d.h:658
ogdf::Graph
Data type for general directed graphs (adjacency list representation).
Definition: Graph_d.h:869
basic.h
Basic declarations, included by all source files.
OGDF_EXPORT
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:101
ogdf::energybased::fmmm::FruchtermanReingold::update_boxlength_and_cornercoordinate
void update_boxlength_and_cornercoordinate(double b_l, DPoint d_l_c)
Import updated information of the drawing area.
Definition: FruchtermanReingold.h:63
ogdf::energybased::fmmm::FruchtermanReingold::boxlength
double boxlength
length of drawing box
Definition: FruchtermanReingold.h:71
ogdf::energybased::fmmm::FruchtermanReingold::_grid_quotient
int _grid_quotient
for coarsening the FrRe-grid
Definition: FruchtermanReingold.h:69
ogdf::energybased::fmmm::FruchtermanReingold::grid_quotient
int grid_quotient() const
Definition: FruchtermanReingold.h:78