Changes in lemon/full_graph.h [834:c2230649a493:782:853fcddcf282] in lemon
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/full_graph.h
r834 r782 52 52 53 53 Node operator()(int ix) const { return Node(ix); } 54 static int index(const Node& node){ return node._id; }54 int index(const Node& node) const { return node._id; } 55 55 56 56 Arc arc(const Node& s, const Node& t) const { … … 163 163 /// only in the concept class. 164 164 /// 165 /// This class provides constant time counting for nodes and arcs.166 ///167 165 /// \note FullDigraph and FullGraph classes are very similar, 168 166 /// but there are two differences. While this class conforms only … … 207 205 /// completely static, the nodes can be indexed with integers from 208 206 /// the range <tt>[0..nodeNum()-1]</tt>. 209 /// The index of a node is the same as its ID.210 207 /// \sa index() 211 208 Node operator()(int ix) const { return Parent::operator()(ix); } … … 216 213 /// completely static, the nodes can be indexed with integers from 217 214 /// the range <tt>[0..nodeNum()-1]</tt>. 218 /// The index of a node is the same as its ID.219 215 /// \sa operator()() 220 static int index(const Node& node){ return Parent::index(node); }216 int index(Node node) const { return Parent::index(node); } 221 217 222 218 /// \brief Returns the arc connecting the given nodes. … … 292 288 293 289 Node operator()(int ix) const { return Node(ix); } 294 static int index(const Node& node){ return node._id; }290 int index(const Node& node) const { return node._id; } 295 291 296 292 Edge edge(const Node& u, const Node& v) const { … … 540 536 /// only in the concept class. 541 537 /// 542 /// This class provides constant time counting for nodes, edges and arcs.543 ///544 538 /// \note FullDigraph and FullGraph classes are very similar, 545 539 /// but there are two differences. While FullDigraph … … 586 580 /// completely static, the nodes can be indexed with integers from 587 581 /// the range <tt>[0..nodeNum()-1]</tt>. 588 /// The index of a node is the same as its ID.589 582 /// \sa index() 590 583 Node operator()(int ix) const { return Parent::operator()(ix); } … … 595 588 /// completely static, the nodes can be indexed with integers from 596 589 /// the range <tt>[0..nodeNum()-1]</tt>. 597 /// The index of a node is the same as its ID.598 590 /// \sa operator()() 599 static int index(const Node& node){ return Parent::index(node); }591 int index(Node node) const { return Parent::index(node); } 600 592 601 593 /// \brief Returns the arc connecting the given nodes.
Note: See TracChangeset
for help on using the changeset viewer.