diff --git a/include/aoc/LanParty.hpp b/include/aoc/LanParty.hpp index 9e5e1b8..d776534 100644 --- a/include/aoc/LanParty.hpp +++ b/include/aoc/LanParty.hpp @@ -27,7 +27,7 @@ class LanParty : public Solver void finish() override; private: Graph lan_; - void countInterconnectedThreeSets(const Vertex& vertexTx); + void computeInterconnectedThreeSetCount(const Vertex& vertexTx); bool shallProcessVertex(const Vertex& vertexToCheck, const Vertex& vertexTx) const; const std::string getFirstTxComputerName() const; const std::string getLastTxComputerName() const; diff --git a/src/LanParty.cpp b/src/LanParty.cpp index 7d83fb1..4776b7c 100644 --- a/src/LanParty.cpp +++ b/src/LanParty.cpp @@ -38,12 +38,12 @@ void LanParty::finish() auto iterTx = vertices.find(getFirstTxComputerName()); while (iterTx != vertices.end() && iterTx->second->getId() <= getLastTxComputerName()) { - countInterconnectedThreeSets(*iterTx->second); + computeInterconnectedThreeSetCount(*iterTx->second); iterTx++; } } -void LanParty::countInterconnectedThreeSets(const Vertex& vertexTx) +void LanParty::computeInterconnectedThreeSetCount(const Vertex& vertexTx) { auto neighborsOfTx = vertexTx.getNeighbors(); for (size_t i = 0; i < neighborsOfTx.size(); i++)