#include"DijkstraSP.h" #include"TopoLongestPath.h" #include"BellmanFordSP.h" int main(){ EdgeWeightedDigraph* G = new EdgeWeightedDigraph("./data/tinyEWD.txt"); //tinyDAG无环有向图 //基础测试 cout<getE()<getV()<degree(0)<getSP(G,startV); cout<<"hasPathTo endVertex="<hasPathTo(endV)<pathTo(endV)){ cout<getTopoLP(G,startV); totalW=0.0; for(DiEdge e:topoLP->pathTo(endV)){ cout<getBellmanSP(G,startV); totalW=0.0; for(DiEdge e:bSP->pathTo(endV)){ cout<