|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
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;
double m_spreadProbability
The namespace for all OGDF objects.
Compare floating point numbers with epsilons and integral numbers with normal compare operators.
Includes declaration of graph class.
Declaration of classes GenericPoint, GenericPolyline, GenericLine, GenericSegment,...
void setMaxClusterSize(long i)
double findBestCluster(NodeArray< bool > &isActive, std::vector< node > &activeNodes, std::vector< node > &cluster)
long call(Graph &G, NodeArray< long > &clusterNum)
Call method: Creates a clustering of G Returns number of created clusters and sets cluster index for ...
Copies of graphs supporting edge splitting.
The modified nibble clustering algorithm.
Representation of clusters in a clustered graph.
internal::GraphObjectContainer< NodeElement > nodes
The container containing all node objects.
const EpsilonTest OGDF_GEOM_ET
double pot(double r, long i)
Decralation of GraphElement and GraphList classes.
NodeArray< double > m_prob
Declaration of graph copy classes.
RegisteredArray for nodes, edges and adjEntries of a graph.
Data type for general directed graphs (adjacency list representation).
void setClusterSizeThreshold(int threshold)
node selectStartNode()
select start node according to some strategy
void modifiedNibble(node snode, std::vector< node > &bestCluster)
main step with walks starting from snode
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.
void spreadValues(NodeArray< bool > &isActive, std::vector< node > &activeNodes, NodeArray< double > &probUpdate)
void setMaxClusterNum(int i)
Call method: Creates a clustering of G in C Returns number of created clusters.
~ModifiedNibbleClusterer()
ModifiedNibbleClusterer()
Class for the representation of nodes.