@@ -242,8 +242,8 @@ class RunIterationVC : public InMemVertexCompute {
242
242
offset_t endCSROffset, vector<weight_t >& intraCommWeights,
243
243
unordered_map<offset_t , offset_t >& commToWeightsIndex) const {
244
244
weight_t selfLoopWeight = 0 ;
245
- commToWeightsIndex[ state.currComm .get (nodeId, memory_order_relaxed)] =
246
- 0 ; // current community.
245
+ auto currComm = state.currComm .get (nodeId, memory_order_relaxed);
246
+ commToWeightsIndex[currComm] = 0 ;
247
247
intraCommWeights.push_back (0 );
248
248
offset_t nextIndex = 1 ;
249
249
for (auto offset = startCSROffset; offset < endCSROffset; offset++) {
@@ -297,7 +297,7 @@ class RunIterationVC : public InMemVertexCompute {
297
297
// ((degree_n+degree_{other nodes in c})^2+(degree_{other nodes in d})^2)/(2m)^2
298
298
// sumWeightedDegrees after move =
299
299
// ((degree_{other nodes in c})^2+(degree_n+degree_{other nodes in d})^2)/(2m)^2
300
- // sumWeightedDegrees after move =
300
+ // sumWeightedDegrees diff =
301
301
// 2*degree_n*(degree_{other nodes in d}-degree_{other nodes in c})/(2m)^2
302
302
auto changeSumWeightedDegrees = 2 * degree * state.modularityConstant *
303
303
(newWeightedDegrees - prevWeightedDegrees);
@@ -363,9 +363,6 @@ std::atomic<weight_t> ComputeModularityVC::sumWeightedDegrees{0};
363
363
364
364
class UpdateCommInfosVC : public InMemVertexCompute {
365
365
public:
366
- static std::atomic<weight_t > sumIntra;
367
- static std::atomic<weight_t > sumTotal;
368
-
369
366
explicit UpdateCommInfosVC (PhaseState& state) : state{state} {}
370
367
371
368
void vertexCompute (offset_t startOffset, offset_t endOffset) override {
0 commit comments