- Main Page
- Classes
- Files

- Search for |

# route.cpp

    00001 // "route.cpp"
    00002
    00003 // (c) OPAC Team, LIFL, January 2006
    00004
    00005 /*
    00006    Contact: paradiseo-help@lists.gforge.inria.fr
    00007 */
    00008
    00009 #include "route.h"
    00010
    00011 unsigned length (const Route & __route) {
    00012
    00013   unsigned len = 0 ;
    00014
    00015   for (unsigned i = 0; i < numNodes; i ++)
    00016     len += distance (__route [i], __route [(i + 1) % numNodes]) ;
    00017
    00018   return len;
    00019 }
    00020
    00021