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