41namespace spring_embedder {
44template<
class Master,
class NodeInfo>
96 double xmin = std::numeric_limits<double>::max(),
97 xmax = std::numeric_limits<double>::lowest();
98 double ymin = std::numeric_limits<double>::max(),
99 ymax = std::numeric_limits<double>::lowest();
104 NodeInfo&
vj = vInfo[
j];
106 double xv = s *
vj.m_pos.m_x;
107 double yv = s *
vj.m_pos.m_y;
154 const NodeInfo&
vj = vInfo[
j];
155 for (
int k =
vj.m_adjBegin; k !=
vj.m_adjStop; ++k) {
Implementation of a thread barrier.
Declaration of class GraphAttributes which extends a Graph by additional attributes.
Declaration of graph copy classes.
Declaration and definition of ogdf::SpringEmbedderBase.
The parameterized class Array implements dynamic arrays of type E.
Stores additional attributes of a graph (like layout information).
double height(node v) const
Returns the height of the bounding box of node v.
double width(node v) const
Returns the width of the bounding box of node v.
Copies of graphs supporting edge splitting.
Class for the representation of nodes.
Base class for ogdf::SpringEmbedderGridVariant::Worker.
void finalScaling(Array< NodeInfo > &vInfo, const Array< int > &adjLists)
void scaling(Array< NodeInfo > &vInfo, const Array< int > &adjLists)
double sumUpLengths(Array< NodeInfo > &vInfo, const Array< int > &adjLists)
WorkerBase(unsigned int id, Master &master, int vStartIndex, int vStopIndex, node vStart, node vStop)
virtual void operator()()=0
virtual ~WorkerBase()=default
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
void updateMin(T &min, const T &newValue)
Stores the minimum of min and newValue in min.
void updateMax(T &max, const T &newValue)
Stores the maximum of max and newValue in max.
The namespace for all OGDF objects.