|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
42 namespace energybased {
47 int length = contained_nodes.
size();
50 for (
node v : contained_nodes) {
51 numbered_nodes[i] = v;
55 for (i = 1; i < length; i++) {
56 for (
int j = i + 1; j <= length; j++) {
57 node u = numbered_nodes[i];
58 node v = numbered_nodes[j];
60 F_rep[v] += f_rep_u_on_v;
61 F_rep[u] -= f_rep_u_on_v;
The namespace for all OGDF objects.
Includes declaration of graph class.
Declaration of classes GenericPoint, GenericPolyline, GenericLine, GenericSegment,...
Declaration of class NodeAttributes.
void calculate_forces_inside_contained_nodes(NodeArray< DPoint > &F_rep, const NodeArray< NodeAttributes > &A, const List< node > &contained_nodes)
Doubly linked lists (maintaining the length of the list).
RegisteredArray for nodes, edges and adjEntries of a graph.
Declaration of class numexcept (handling of numeric problems).
Declaration and implementation of Array class and Array algorithms.
Declaration of doubly linked lists and iterators.
int size() const
Returns the number of elements in the list.
static DPoint f_rep_u_on_v(DPoint pos_u, DPoint pos_v)
Class for the representation of nodes.