本文链接: https://blog.youkuaiyun.com/Mr_scott_j/article/details/108943644
以从Graph类派生出的UndiGraph类为例:
class Graph//基类
{
protected:
int maxVertexes;
int Vertex_num;
int Edge_num;
bool Weight;
bool Directed;
bool Vertex_value;
public:
//static const E maxWeight = INF;
Graph(int size = 30);
Graph(const Graph& g);//copy
~Graph() {
}
int getnumVertexes()
{