#include #include #include using namespace hugo; const int PET_SIZE =5; int main() { typedef SmartGraph Graph; typedef Graph::Edge Edge; typedef Graph::Node Node; typedef Graph::EdgeIt EdgeIt; typedef Graph::NodeIt NodeIt; typedef Graph::EdgeMap LengthMap; Graph G; Node s, t; LengthMap cap(G); PetStruct ps = addPetersen(G,PET_SIZE); for(int i=0;i dijkstra_test(G, cap); dijkstra_test.run(s); check(dijkstra_test.dist(t)==13,"Dijkstra found a wrong path."); }