加了拓扑检查功能。

Signed-off-by: dmy@lab <dmy@lab.lab>
This commit is contained in:
dmy@lab
2015-01-20 20:50:38 +08:00
parent 5b9625f708
commit 41502b5afa
6 changed files with 263 additions and 5 deletions

View File

@@ -0,0 +1,22 @@
#ifndef TOPOLOGYTEST_H
#define TOPOLOGYTEST_H
//检查拓扑是否完整
#include <QPair>
#include <QList>
#include <QHash>
#include <QVector>
class TopologyTest
{
public:
TopologyTest(int nodeN);
~TopologyTest();
bool start(const QList<QPair<int,int> >& linkage);
private:
void next(int start, QHash<int, QVector<int> > &arch);
QVector<int> access;
int nodeN;
};
#endif // TOPOLOGYTEST_H