40 namespace spring_embedder {
43 template<
typename NodeInfo,
typename ForceModelBase>
77 , m_boundingBox(boundingBox)
81 , m_adjLists(2*gc.numberOfEdges())
82 , m_forceModel(nullptr)
83 , m_forceModelImprove(nullptr)
85 , m_avgDisplacement(
std::numeric_limits<double>::max())
86 , m_maxDisplacement(
std::numeric_limits<double>::max())
104 m_t = m_tNull = 0.25 * m_idealEdgeLength * sqrt(
numberOfNodes());
109 m_avgDisplacement = std::numeric_limits<double>::max();
110 m_maxDisplacement = std::numeric_limits<double>::max();
121 m_avgDisplacement = std::numeric_limits<double>::max();
122 m_maxDisplacement = std::numeric_limits<double>::max();
double scaleFactor() const
const ForceModelBase & forceModelImprove() const
Declaration of class GraphAttributes which extends a Graph by additional attributes.
Common base class for ogdf::SpringEmbedderBase and ogdf::SpringEmbedderGridVariant.
Array< NodeInfo > & vInfo()
double idealEdgeLength() const
int iterations() const
Returns the current setting of iterations.
int numberOfIterations() const
double maxConvergenceFactor() const
Returns the currently used maximum convergence factor.
int numberOfIterationsImprove() const
Representation of a barrier.
void threadSync()
Synchronizes the threads in the group.
const NodeArray< int > & index() const
double avgDisplacement() const
Array< NodeInfo > m_vInfo
double forceLimitStep() const
Implementation of a thread barrier.
INDEX size() const
Returns the size (number of elements) of the array.
Stores additional attributes of a graph (like layout information).
T log2(T x)
Returns the logarithm of x to the base 2.
int iterationsImprove() const
Returns the current setting of iterations for the improvement phase.
Declaration of graph copy classes.
double maxForceLength() const
Copies of graphs supporting edge splitting.
double coolingFactor() const
double maxDisplacement() const
const SpringEmbedderBase & m_spring
int numberOfNodes() const
const GraphCopy & getGraph() const
ForceModelBase * m_forceModel
bool hasConverged() const
const ForceModelBase & forceModel() const
MasterBase(const SpringEmbedderBase &spring, const GraphCopy &gc, GraphAttributes &ga, DPoint &boundingBox)
GraphAttributes & getAttributes()
The namespace for all OGDF objects.
void initImprovementPhase()
Declaration and definition of ogdf::SpringEmbedderBase.
double avgConvergenceFactor() const
Returns the currently used average convergence factor.
double coolDownFactor() const
Array< int > & adjLists()
ForceModelBase * m_forceModelImprove
bool noise() const
Returns the current setting of noise.
Base class for ogdf::SpringEmbedderGridVariant::Master.