109 std::vector<node>& bestCluster);
121 const double r = 1.5;
122 return static_cast<int>(ceil(a *
pot(
r, i))) + i * d + a;
126 double pot(
double r,
long i) {
return pow(
r,
static_cast<double>(i)); }
129 const int factor = 25;
Compare floating point numbers with epsilons and integral numbers with normal compare operators.
Includes declaration of graph class.
Declaration of graph copy classes.
Decralation of GraphElement and GraphList classes.
Declaration of classes GenericPoint, GenericPolyline, GenericLine, GenericSegment,...
Representation of clusters in a clustered graph.
std::enable_if< std::is_integral< T >::value, bool >::type equal(const T &x, const T &y) const
Compare if x is EQUAL to y for integral types.
Copies of graphs supporting edge splitting.
Data type for general directed graphs (adjacency list representation).
internal::GraphObjectContainer< NodeElement > nodes
The container containing all node objects.
The modified nibble clustering algorithm.
~ModifiedNibbleClusterer()
void modifiedNibble(node snode, std::vector< node > &bestCluster)
main step with walks starting from snode
long call(Graph &G, NodeArray< long > &clusterNum)
Call method: Creates a clustering of G Returns number of created clusters and sets cluster index for ...
void setMaxClusterSize(long i)
void setClusterSizeThreshold(int threshold)
double pot(double r, long i)
void spreadValues(NodeArray< bool > &isActive, std::vector< node > &activeNodes, NodeArray< double > &probUpdate)
NodeArray< double > m_prob
node selectStartNode()
select start node according to some strategy
double m_spreadProbability
double findBestCluster(NodeArray< bool > &isActive, std::vector< node > &activeNodes, std::vector< node > &cluster)
long call(Graph &G, NodeArray< long > &clusterNum, NodeArray< long > &topLevelNum)
A convenience method. Due to the characteristics of the algorithm (not very accurate,...
ModifiedNibbleClusterer()
void setMaxClusterNum(int i)
Call method: Creates a clustering of G in C Returns number of created clusters.
Class for the representation of nodes.
RegisteredArray for nodes, edges and adjEntries of a graph.
The namespace for all OGDF objects.
const EpsilonTest OGDF_GEOM_ET