cimforreduceloss/testHasttable/topologytest.h

23 lines
416 B
C++

#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