#include #include "LinkQueue.h" #include "Mgraph.h" #include using namespace std; // 有向网 void DispMenu() { cout<<"\n 请选择你要的操作"< G; int choice; do { DispMenu(); cin>>choice; switch(choice) { case 1: // 创建无向网 CreateDN(G); cout<>u; k=LocateVex(G,u); if(k!=-1) cout<<"顶点"<>index; if(GetVex(G,index,v)) cout<<"位置为"<>u; cout<<"请输入更改后顶点: "; cin>>v; PutVex(G,u,v); cout<<"顶点值修后的网为“"<>v; InsertVex(G,v); cout<<"插入顶点和相应边后的网为“"<>v; DeleteVex(G,v); cout<<"顶点删除后的网为“"<>u>>v>>weight; if(InsertArc(G,u,v,weight)) cout<<"插入边后的网为“"<>u>>v; DeleteArc(G,u,v); cout<<"顶点边后的网为“"<