Changeset 1791:62e7d237e1fb in lemon-0.x for lemon/full_graph.h
- Timestamp:
- 11/14/05 19:38:41 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2332
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/full_graph.h
r1726 r1791 24 24 #include <lemon/bits/alteration_notifier.h> 25 25 #include <lemon/bits/static_map.h> 26 27 #include <lemon/bits/undir_graph_extender.h> 26 #include <lemon/bits/graph_extender.h> 28 27 29 28 #include <lemon/invalid.h> … … 71 70 /// Maximum node ID. 72 71 ///\sa id(Node) 73 int max Id(Node = INVALID) const { return _nodeNum-1; }72 int maxNodeId() const { return _nodeNum-1; } 74 73 /// Maximum edge ID. 75 74 76 75 /// Maximum edge ID. 77 76 ///\sa id(Edge) 78 int max Id(Edge = INVALID) const { return _edgeNum-1; }77 int maxEdgeId() const { return _edgeNum-1; } 79 78 80 79 Node source(Edge e) const { return e.id % _nodeNum; } … … 102 101 static int id(Edge e) { return e.id; } 103 102 104 static Node fromId(int id, Node) { return Node(id);}105 106 static Edge fromId(int id, Edge) { return Edge(id);}103 static Node nodeFromId(int id) { return Node(id);} 104 105 static Edge edgeFromId(int id) { return Edge(id);} 107 106 108 107 typedef True FindEdgeTag; … … 191 190 }; 192 191 193 194 typedef AlterableGraphExtender<FullGraphBase>195 AlterableFullGraphBase;196 typedef IterableGraphExtender<AlterableFullGraphBase>197 IterableFullGraphBase;198 192 typedef StaticMappableGraphExtender< 199 193 IterableGraphExtender< 200 AlterableGraphExtender<FullGraphBase> > > ExtendedFullGraphBase; 194 AlterableGraphExtender< 195 GraphExtender<FullGraphBase> > > > ExtendedFullGraphBase; 201 196 202 197 /// \ingroup graphs … … 218 213 }; 219 214 220 ///@}221 215 222 216 class UndirFullGraphBase { … … 253 247 /// Maximum node ID. 254 248 ///\sa id(Node) 255 int max Id(Node = INVALID) const { return _nodeNum-1; }249 int maxNodeId() const { return _nodeNum-1; } 256 250 /// Maximum edge ID. 257 251 258 252 /// Maximum edge ID. 259 253 ///\sa id(Edge) 260 int max Id(Edge = INVALID) const { return _edgeNum-1; }254 int maxEdgeId() const { return _edgeNum-1; } 261 255 262 256 Node source(Edge e) const {
Note: See TracChangeset
for help on using the changeset viewer.