Files
912-notes/thu_dsa/chp6/Vertex.h
2019-06-11 08:19:55 +08:00

23 lines
345 B
C++

#ifndef VERTEX_H_
#define VERTEX_H_
#include "Graph.h"
template <typename Tv>
class Vertex{
public:
Tv data;
VStatus status = UNDISCOVERED;
int parent = -1;
int dTime = -1;
int fTime = -1;
int priority = INT_MAX;
int inDegree = 0;
int outDegree = 0;
Vertex() = default;
Vertex(Tv data) : data(data) {}
};
#endif