init Graph类

This commit is contained in:
2024-12-04 22:09:22 +08:00
parent 3a3f0d4443
commit a56aa1d048
3 changed files with 57 additions and 4 deletions
+27
View File
@@ -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