正在加载图片...
图的抽象数据类型 class graph i public Graph (); void Insert Vertex( Type vertex void InsertEdge( int vl, int v2, int weight ) void Remove Vertex( int v ) void RemoveEdge( int vI, int v2 ); int IsEmpty o Type Get Weight( int v1, int v2 ) int GetFirstNeighbor( int v ); int GetNextNeighbor( int vI, int v2)class Graph { public: Graph ( ); void InsertVertex ( Type & vertex ); void InsertEdge ( int v1, int v2, int weight ); void RemoveVertex ( int v ); void RemoveEdge ( int v1, int v2 ); int IsEmpty ( ); Type GetWeight ( int v1, int v2 ); int GetFirstNeighbor ( int v ); int GetNextNeighbor ( int v1, int v2 ); }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有