Rename LanParty method to "compute..."
This commit is contained in:
parent
c777bad38a
commit
1fd73c1a18
|
@ -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;
|
||||
|
|
|
@ -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++)
|
||||
|
|
Loading…
Reference in New Issue