COIN-OR::LEMON - Graph Library

Changeset 2509:a8081c9cd96a in lemon-0.x for lemon/min_mean_cycle.h


Ignore:
Timestamp:
11/14/07 07:28:08 (16 years ago)
Author:
Peter Kovacs
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3374
Message:

Small changes in the min. cost flow classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/min_mean_cycle.h

    r2437 r2509  
    2323///
    2424/// \file
    25 /// \brief Karp algorithm for finding a minimum mean cycle.
    26 
     25/// \brief Karp's algorithm for finding a minimum mean (directed) cycle.
     26
     27#include <vector>
    2728#include <lemon/graph_utils.h>
    2829#include <lemon/topology.h>
     
    6465  protected:
    6566
    66     /// \brief Data sturcture for path data.
     67    /// \brief Data structure for path data.
    6768    struct PathData
    6869    {
     
    151152      // Creating vectors for all nodes
    152153      int n = nodes.size();
    153       for (int i = 0; i < nodes.size(); ++i) {
     154      for (int i = 0; i < n; ++i) {
    154155        dmap[nodes[i]].resize(n + 1);
    155156      }
Note: See TracChangeset for help on using the changeset viewer.