COIN-OR::LEMON - Graph Library

Ignore:
Timestamp:
12/06/04 01:30:44 (17 years ago)
Author:
Mihaly Barasz
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1420
Message:

Undirected graph documentation and concept refinements.

  • quite a few bug fixes
  • concept::UndirGraph? is almost complete and looks quite good.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/lemon/iterable_graph_extender.h

    r1022 r1030  
    158158    };
    159159
    160     class UndirIncEdgeIt : public UndirEdge {
     160    class IncEdgeIt : public UndirEdge {
    161161      const Graph* graph;
    162162      bool forward;
     
    166166    public:
    167167
    168       UndirIncEdgeIt() { }
    169 
    170       UndirIncEdgeIt(Invalid i) : UndirEdge(i), forward(false) { }
    171 
    172       explicit UndirIncEdgeIt(const Graph& _graph, const Node &n)
     168      IncEdgeIt() { }
     169
     170      IncEdgeIt(Invalid i) : UndirEdge(i), forward(false) { }
     171
     172      explicit IncEdgeIt(const Graph& _graph, const Node &n)
    173173        : graph(&_graph)
    174174      {
     
    177177
    178178      // FIXME: Do we need this type of constructor here?
    179       // UndirIncEdgeIt(const Graph& _graph, const Edge& e) :
     179      // IncEdgeIt(const Graph& _graph, const Edge& e) :
    180180      //   UndirEdge(e), graph(&_graph), forward(_graph.forward(e)) { }
    181181      // or
    182       // UndirIncEdgeIt(const Graph& _graph, const Node& n,
     182      // IncEdgeIt(const Graph& _graph, const Node& n,
    183183      //    Const UndirEdge &e) ... ?
    184184
    185       UndirIncEdgeIt& operator++() {
     185      IncEdgeIt& operator++() {
    186186        graph->_dirNextOut(*this);
    187187        return *this;
     
    189189    };
    190190
    191     Node source(const UndirIncEdgeIt &e) const {
     191    Node source(const IncEdgeIt &e) const {
    192192      return _dirSource(e);
    193193    }
     
    198198
    199199    /// Target of the given Edge.
    200     Node target(const UndirIncEdgeIt &e) const {
     200    Node target(const IncEdgeIt &e) const {
    201201      return _dirTarget(e);
    202202    }
Note: See TracChangeset for help on using the changeset viewer.