20 #ifndef __CXXGRAPH_PARTITIONINGSTATS_H__
21 #define __CXXGRAPH_PARTITIONINGSTATS_H__
24 #include "Utility/Typedef.hpp"
27 namespace PARTITIONING
32 unsigned int numberOfPartitions = 0;
33 unsigned int numberOfNodes = 0;
34 unsigned int replicatedNodesCount = 0;
35 unsigned int numberOfEdges = 0;
36 unsigned int replicatedEdgesCount = 0;
37 unsigned int maxEdgesLoad = 0;
38 unsigned int minEdgesLoad = 0;
39 unsigned int maxNodesLoad = 0;
40 unsigned int minNodesLoad = 0;
41 double balanceEdgesFactor = 0.0;
42 double balanceNodesFactor = 0.0;
43 double nodesReplicationFactor = 0.0;
44 double edgesReplicationFactor = 0.0;
46 friend std::ostream &operator<<(std::ostream &os,
const PartitioningStats &partitionStats)
48 os <<
"Partitioning Stats:\n";
49 os <<
"\tNumber of Partitions: " << partitionStats.numberOfPartitions <<
"\n";
50 os <<
"\tNumber of Nodes: " << partitionStats.numberOfNodes <<
"\n";
51 os <<
"\tNumber of Edges: " << partitionStats.numberOfEdges <<
"\n";
52 os <<
"\tNumber of Nodes Replica: " << partitionStats.replicatedNodesCount <<
"\n";
53 os <<
"\tNumber of Edges Replica: " << partitionStats.replicatedEdgesCount <<
"\n";
54 os <<
"\tNodes Replication Factor: " << partitionStats.nodesReplicationFactor <<
"\n";
55 os <<
"\tEdges Replication Factor: " << partitionStats.edgesReplicationFactor <<
"\n";
56 os <<
"\tMax Edges Load: " << partitionStats.maxEdgesLoad <<
"\n";
57 os <<
"\tMin Edges Load: " << partitionStats.minEdgesLoad <<
"\n";
58 os <<
"\tBalance Edges Factor: " << partitionStats.balanceEdgesFactor <<
"\n";
59 os <<
"\tMax Nodes Load: " << partitionStats.maxNodesLoad <<
"\n";
60 os <<
"\tMin Nodes Load: " << partitionStats.minNodesLoad <<
"\n";
61 os <<
"\tBalance Nodes Factor: " << partitionStats.balanceNodesFactor <<
"\n";
Definition: PartitioningStats.hpp:30