120 const double r = 1.5;
121 return static_cast<int>(ceil(a *
pot(r, i))) + i*d + a;
125 double pot(
double r,
long i)
127 return pow(r, static_cast<double>(i));
132 const int factor = 25;
NodeArray< double > m_prob
void setClusterSizeThreshold(int threshold)
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.
Data type for general directed graphs (adjacency list representation).
void spreadValues(NodeArray< bool > &isActive, std::vector< node > &activeNodes, NodeArray< double > &probUpdate)
void modifiedNibble(node snode, std::vector< node > &bestCluster)
main step with walks starting from snode
~ModifiedNibbleClusterer()
The modified nibble clustering algorithm.
void setMaxClusterNum(int i)
Call method: Creates a clustering of G in C Returns number of created clusters.
void setMaxClusterSize(long i)
const EpsilonTest OGDF_GEOM_ET
node selectStartNode()
select start node according to some strategy
ModifiedNibbleClusterer()
Dynamic arrays indexed with nodes.
Declaration of graph copy classes.
double m_spreadProbability
Copies of graphs supporting edge splitting.
Class for the representation of nodes.
double findBestCluster(NodeArray< bool > &isActive, std::vector< node > &activeNodes, std::vector< node > &cluster)
Representation of clusters in a clustered graph.
Includes declaration of graph class.
double pot(double r, long i)
long call(Graph &G, NodeArray< long > &clusterNum)
Call method: Creates a clustering of G Returns number of created clusters and sets cluster index for ...
The namespace for all OGDF objects.
Declaration of classes GenericPoint, GenericPolyline, GenericLine, GenericSegment, DPolygon, DRect, DIntersectableRect.
Container::value_type sum(const Container &values)
Returns the sum of an iterable container of given values.
internal::GraphObjectContainer< NodeElement > nodes
The container containing all node objects.