33#ifdef OGDF_INCLUDE_CGAL
47template<
typename Kernel>
49 using FT =
typename Kernel::FT;
60 return std::min(
bb.height(),
bb.width());
63 FT potential()
const {
return m_distance +
bb.width() *
bb.height() / 4; }
79 if (top.potential() < 0) {
83 if (top.m_distance >
opt.m_distance) {
87 if (top.potential() -
opt.m_distance < precision) {
91 auto h = top.bb.height() / 2;
92 auto w = top.bb.width() / 2;
94 Bbox b1(top.bb.xmin(), top.bb.ymin(), top.bb.xmin() + w, top.bb.ymin() +
h);
95 Bbox b2(top.bb.xmin() + w, top.bb.ymin(), top.bb.xmax(), top.bb.ymin() +
h);
96 Bbox b3(top.bb.xmin() + w, top.bb.ymin() +
h, top.bb.xmax(), top.bb.ymax());
97 Bbox b4(top.bb.xmin(), top.bb.ymin() +
h, top.bb.xmin() + w, top.bb.ymax());
Priority queue interface wrapping various heaps.
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
bool operator<(const MDMFLengthAttribute &x, const MDMFLengthAttribute &y)
The namespace for all OGDF objects.