22
testHasttable/topologytest.h
Normal file
22
testHasttable/topologytest.h
Normal 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
|
||||
Reference in New Issue
Block a user