Rename LanParty method to "compute..."

This commit is contained in:
Stefan Müller 2024-12-25 21:34:13 +01:00
parent c777bad38a
commit 1fd73c1a18
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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++)