图的抽象数据类型 class Grap h i ublic. Graph o; void Insert vertex( const Type vertex )i void Insertedge const int vl, const int v2, int weight ) void Remove vertex( const int v ); void RemoveEdge( const int vl, const int v2) int IsEmpty (; Type GetWeight( const int vl, const int v2 )i int GetFirstNeighbor( const int v ); int GetNextNeighbor( const int vl, const int v2)class Graph { public: Graph ( ); void InsertVertex ( const Type & vertex ); void InsertEdge ( const int v1, const int v2, int weight ); void RemoveVertex ( const int v ); void RemoveEdge ( const int v1, const int v2 ); int IsEmpty ( ); Type GetWeight ( const int v1, const int v2 ); int GetFirstNeighbor ( const int v ); int GetNextNeighbor ( const int v1, const int v2 ); }