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;
|
void finish() override;
|
||||||
private:
|
private:
|
||||||
Graph lan_;
|
Graph lan_;
|
||||||
void countInterconnectedThreeSets(const Vertex& vertexTx);
|
void computeInterconnectedThreeSetCount(const Vertex& vertexTx);
|
||||||
bool shallProcessVertex(const Vertex& vertexToCheck, const Vertex& vertexTx) const;
|
bool shallProcessVertex(const Vertex& vertexToCheck, const Vertex& vertexTx) const;
|
||||||
const std::string getFirstTxComputerName() const;
|
const std::string getFirstTxComputerName() const;
|
||||||
const std::string getLastTxComputerName() const;
|
const std::string getLastTxComputerName() const;
|
||||||
|
|
|
@ -38,12 +38,12 @@ void LanParty::finish()
|
||||||
auto iterTx = vertices.find(getFirstTxComputerName());
|
auto iterTx = vertices.find(getFirstTxComputerName());
|
||||||
while (iterTx != vertices.end() && iterTx->second->getId() <= getLastTxComputerName())
|
while (iterTx != vertices.end() && iterTx->second->getId() <= getLastTxComputerName())
|
||||||
{
|
{
|
||||||
countInterconnectedThreeSets(*iterTx->second);
|
computeInterconnectedThreeSetCount(*iterTx->second);
|
||||||
iterTx++;
|
iterTx++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void LanParty::countInterconnectedThreeSets(const Vertex& vertexTx)
|
void LanParty::computeInterconnectedThreeSetCount(const Vertex& vertexTx)
|
||||||
{
|
{
|
||||||
auto neighborsOfTx = vertexTx.getNeighbors();
|
auto neighborsOfTx = vertexTx.getNeighbors();
|
||||||
for (size_t i = 0; i < neighborsOfTx.size(); i++)
|
for (size_t i = 0; i < neighborsOfTx.size(); i++)
|
||||||
|
|
Loading…
Reference in New Issue