40namespace spring_embedder {
42template<
typename NodeInfo>
46 double idealEdgeLength)
62 const NodeInfo& vj =
m_vInfo[j];
66 for (
int i = vj.m_adjBegin; i != vj.m_adjStop; ++i) {
70 double d = dist.
norm();
Declaration and implementation of Array class and Array algorithms.
Declaration of classes GenericPoint, GenericPolyline, GenericLine, GenericSegment,...
The parameterized class Array implements dynamic arrays of type E.
double norm() const
Returns the norm of the point.
const Array< int > & m_adjLists
double normByIdealEdgeLength(double norm) const
CommonForceModelBase(const Array< NodeInfo > &vInfo, const Array< int > &adjLists, double idealEdgeLength)
DPoint computeFruchtermanReingoldAttractiveForce(int j, int idealExponent) const
const Array< NodeInfo > & m_vInfo
The namespace for all OGDF objects.