COIN-OR::LEMON - Graph Library

Changeset 503:769f31e9f7b0 in lemon-0.x for src/include/smart_graph.h


Ignore:
Timestamp:
05/03/04 09:27:29 (20 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@663
Message:

test/graph_test.cc added.
It discovered several bugs and warnings in 'include/smart_graph.h',
in 'include/skeletons/graph.h' and in 'work/alpar/list_graph.h'.
They have also been fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/include/smart_graph.h

    r491 r503  
    8181  public:
    8282
     83
    8384    class NodeIt;
    8485    class EdgeIt;
     
    139140    bool valid(Node n) const { return n.n!=-1; }
    140141   
     142    ///\deprecated Use
     143    ///\code
     144    ///  e=INVALID;
     145    ///\endcode
     146    ///instead.
    141147    void setInvalid(Edge &e) { e.n=-1; }
     148    ///\deprecated Use
     149    ///\code
     150    ///  e=INVALID;
     151    ///\endcode
     152    ///instead.
    142153    void setInvalid(Node &n) { n.n=-1; }
    143154   
     
    198209    public:
    199210      Node() {}
    200       Node (Invalid i) { n=-1; }
     211      Node (Invalid) { n=-1; }
    201212      bool operator==(const Node i) const {return n==i.n;}
    202213      bool operator!=(const Node i) const {return n!=i.n;}
     
    380391        DynMapBase<Edge>(*m.G), container(m.container)
    381392      {
    382         G->dyn_node_maps.push_back(this);
     393        G->dyn_edge_maps.push_back(this);
    383394      }
    384395
     
    390401        DynMapBase<Edge>(*m.G)
    391402      {
    392         G->dyn_node_maps.push_back(this);
     403        G->dyn_edge_maps.push_back(this);
    393404        typename std::vector<TT>::const_iterator i;
    394405        for(typename std::vector<TT>::const_iterator i=m.container.begin();
Note: See TracChangeset for help on using the changeset viewer.