Changeset 1791:62e7d237e1fb in lemon-0.x for lemon/list_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/list_graph.h
r1774 r1791 28 28 #include <lemon/bits/alteration_notifier.h> 29 29 #include <lemon/bits/default_map.h> 30 31 #include <lemon/bits/undir_graph_extender.h> 30 #include <lemon/bits/graph_extender.h> 32 31 33 32 #include <lemon/error.h> … … 106 105 /// Maximum node ID. 107 106 ///\sa id(Node) 108 int max Id(Node = INVALID) const { return nodes.size()-1; }107 int maxNodeId() const { return nodes.size()-1; } 109 108 110 109 /// Maximum edge ID. … … 112 111 /// Maximum edge ID. 113 112 ///\sa id(Edge) 114 int max Id(Edge = INVALID) const { return edges.size()-1; }113 int maxEdgeId() const { return edges.size()-1; } 115 114 116 115 Node source(Edge e) const { return edges[e.id].source; } … … 165 164 static int id(Edge e) { return e.id; } 166 165 167 static Node fromId(int id, Node) { return Node(id);}168 static Edge fromId(int id, Edge) { return Edge(id);}166 static Node nodeFromId(int id) { return Node(id);} 167 static Edge edgeFromId(int id) { return Edge(id);} 169 168 170 169 /// Adds a new node to the graph. … … 316 315 MappableGraphExtender< 317 316 IterableGraphExtender< 318 AlterableGraphExtender<ListGraphBase> > > > > > ExtendedListGraphBase; 317 AlterableGraphExtender< 318 GraphExtender<ListGraphBase> > > > > > > ExtendedListGraphBase; 319 319 320 320 /// \addtogroup graphs
Note: See TracChangeset
for help on using the changeset viewer.