ForceModelFRModAttr(const Array< NodeInfo > &vInfo, const Array< int > &adjLists, const Array2D< ListPure< int >> &gridCell, double idealEdgeLength)
GenericPoint< double > DPoint
Representing two-dimensional point with real coordinates.
ForceModelFR(const Array< NodeInfo > &vInfo, const Array< int > &adjLists, const Array2D< ListPure< int >> &gridCell, double idealEdgeLength)
ForceModelFRModRep(const Array< NodeInfo > &vInfo, const Array< int > &adjLists, const Array2D< ListPure< int >> &gridCell, double idealEdgeLength)
Common implementations of force models for SpringEmbedder algorithms.
DPoint computeRepulsiveForce(int j, double boxLength, int idealExponent, int normExponent=1) const
The parameterized class Array2D implements dynamic two-dimensional arrays.
DPoint computeMixedForcesDisplacement(int j, int boxLength, std::function< DPoint(double, const DPoint &)> attractiveChange, std::function< double()> attractiveFinal) const
CommonForceModelBase(const Array< NodeInfo > &vInfo, const Array< int > &adjLists, double idealEdgeLength)
Declaration of ogdf::SpringEmbedderGridVariant.
double idealEdgeLength() const
Returns the current setting of ideal edge length.
virtual DPoint computeDisplacement(int j, double boxLength) const =0
ForceModelBase(const Array< NodeInfo > &vInfo, const Array< int > &adjLists, const Array2D< ListPure< int >> &gridCell, double idealEdgeLength)
ForceModelEades(const Array< NodeInfo > &vInfo, const Array< int > &adjLists, const Array2D< ListPure< int >> &gridCell, double idealEdgeLength)
The namespace for all OGDF objects.
virtual ~ForceModelBase()
const Array2D< ListPure< int > > & m_gridCell
ForceModelGronemann(const Array< NodeInfo > &vInfo, const Array< int > &adjLists, const Array2D< ListPure< int >> &gridCell, double idealEdgeLength)
ForceModelHachul(const Array< NodeInfo > &vInfo, const Array< int > &adjLists, const Array2D< ListPure< int >> &gridCell, double idealEdgeLength)