正在加载图片...
图的抽象数据类型 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 ); }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有