COIN-OR::LEMON - Graph Library

Changes in / [719:7bf1117178af:716:2f9d9bcc1867] in lemon-1.1


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/suurballe.h

    r719 r644  
    5656  /// The default value is <tt>GR::ArcMap<int></tt>.
    5757  ///
    58   /// \warning Length values should be \e non-negative.
     58  /// \warning Length values should be \e non-negative \e integers.
    5959  ///
    6060  /// \note For finding node-disjoint paths this algorithm can be used
     
    253253      _graph(graph), _length(length), _flow(0), _local_flow(false),
    254254      _potential(0), _local_potential(false), _pred(graph)
    255     {}
     255    {
     256      LEMON_ASSERT(std::numeric_limits<Length>::is_integer,
     257        "The length type of Suurballe must be integer");
     258    }
    256259
    257260    /// Destructor.
     
    518521    /// \pre \ref run() or \ref findPaths() must be called before using
    519522    /// this function.
    520     const Path& path(int i) const {
     523    Path path(int i) const {
    521524      return paths[i];
    522525    }
Note: See TracChangeset for help on using the changeset viewer.