COIN-OR::LEMON - Graph Library

Ignore:
Timestamp:
08/11/05 17:55:17 (14 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2135
Message:

Some modification on the undirected graph interface.
Doc improvments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/concept/graph_component.h

    r1620 r1627  
    679679      ///
    680680      /// Gives back the base node of the iterator.
     681      /// It is always the target of the pointed edge.
    681682      Node baseNode(const InEdgeIt&) const { return INVALID; }
    682683
     
    684685      ///
    685686      /// Gives back the running node of the iterator.
     687      /// It is always the source of the pointed edge.
    686688      Node runningNode(const InEdgeIt&) const { return INVALID; }
    687689
     
    689691      ///
    690692      /// Gives back the base node of the iterator.
     693      /// It is always the source of the pointed edge.
    691694      Node baseNode(const OutEdgeIt&) const { return INVALID; }
    692695
     
    694697      ///
    695698      /// Gives back the running node of the iterator.
     699      /// It is always the target of the pointed edge.
    696700      Node runningNode(const OutEdgeIt&) const { return INVALID; }
     701
     702      /// \brief The opposite node on the given edge.
     703      ///
     704      /// Gives back the opposite on the given edge.
     705      /// \todo It should not be here.
     706      Node oppositeNode(const Node&, const Edge&) const { return INVALID; }
    697707
    698708   
     
    708718          checkConcept<GraphIncIterator<_Graph>, typename _Graph::InEdgeIt>();
    709719          checkConcept<GraphIncIterator<_Graph>, typename _Graph::OutEdgeIt>();
    710         }
     720
     721          typename _Graph::Node n;
     722          typename _Graph::Edge e;
     723          n = graph.oppositeNode(n, e);
     724        }
     725       
     726        const _Graph& graph;
     727       
    711728      };
    712729    };
Note: See TracChangeset for help on using the changeset viewer.