38 namespace energybased {
42 int length = contained_nodes.
size();
45 for (
node v : contained_nodes) {
46 numbered_nodes[i] = v;
50 for (i = 1; i < length; i++) {
51 for (
int j = i + 1; j <= length; j++) {
52 node u = numbered_nodes[i];
53 node v = numbered_nodes[j];
55 F_rep[v] += f_rep_u_on_v;
56 F_rep[u] -= f_rep_u_on_v;
static DPoint f_rep_u_on_v(DPoint pos_u, DPoint pos_v)
Declaration of class numexcept (handling of numeric problems).
Dynamic arrays indexed with nodes.
Doubly linked lists (maintaining the length of the list).
Class for the representation of nodes.
void calculate_forces_inside_contained_nodes(NodeArray< DPoint > &F_rep, const NodeArray< NodeAttributes > &A, const List< node > &contained_nodes)
Declaration of class NodeAttributes.
int size() const
Returns the number of elements in the list.
The namespace for all OGDF objects.