Changeset 2367:041878e6f388 in lemon-0.x for demo/csp_demo.cc
- Timestamp:
- 02/19/07 10:55:43 (17 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3182
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
demo/csp_demo.cc
r2360 r2367 19 19 ///\ingroup demos 20 20 ///\file 21 ///\brief Demonstrating the usage of LEMON's Dijkstra algorithm 21 ///\brief Demonstrating the usage of LEMON's algorithm for solving the 22 /// Constrained shortest Path Problem 22 23 /// 23 /// Dijkstra's algorithm computes shortest paths between two nodes in 24 /// a graph with edge lengths. Here we only show some of the 25 /// facilities supplied by our implementation: for the detailed 26 /// documentation of the LEMON Dijkstra class read \ref lemon::Dijkstra "this". 27 /// 28 /// \include dijkstra_demo.cc 24 /// \include csp_demo.cc 29 25 30 26 #include <iostream> … … 67 63 68 64 ConstrainedShortestPath<Graph,LengthMap,LengthMap> csp(g,cost,delay); 69 for(double d=0;d<2;d+=.0 1)65 for(double d=0;d<2;d+=.001) 70 66 { 71 67 double lo_bo;
Note: See TracChangeset
for help on using the changeset viewer.