init Graph类
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
//
|
||||
// Created by 31416 on 24-12-4.
|
||||
//
|
||||
|
||||
#ifndef GRAPH_H
|
||||
#define GRAPH_H
|
||||
|
||||
#include<vector>
|
||||
using namespace std;
|
||||
|
||||
template<typename T>
|
||||
class Graph {
|
||||
private:
|
||||
vector<int> ids;
|
||||
Graph *node;
|
||||
int max_id;
|
||||
|
||||
public:
|
||||
Graph() {
|
||||
ids.clear();
|
||||
node = NULL;
|
||||
max_id = 0;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
#endif //GRAPH_H
|
||||
Reference in New Issue
Block a user