118 const double r = 1.5;
119 return static_cast<int>(
ceil(a *
pot(
r, i))) + i *
d + a;
123 double pot(
double r,
long i) {
return pow(
r,
static_cast<double>(i)); }
126 const int factor = 25;
Includes declaration of graph class.
Declaration of graph copy 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.
Dynamic arrays indexed with nodes.
Class for the representation of nodes.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.
const EpsilonTest OGDF_GEOM_ET