Changeset 1791:62e7d237e1fb in lemon0.x for lemon/grid_graph.h
 Timestamp:
 11/14/05 19:38:41 (14 years ago)
 Branch:
 default
 Phase:
 public
 Convert:
 svn:c9d7d8f590d60310b91f818b3a526b0e/lemon/trunk@2332
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

lemon/grid_graph.h
r1703 r1791 25 25 #include <lemon/bits/alteration_notifier.h> 26 26 #include <lemon/bits/static_map.h> 27 28 #include <lemon/bits/undir_graph_extender.h> 27 #include <lemon/bits/graph_extender.h> 29 28 30 29 #include <lemon/xy.h> … … 165 164 /// Maximum node ID. 166 165 ///\sa id(Node) 167 int max Id(Node = INVALID) const { return nodeNum()  1; }166 int maxNodeId() const { return nodeNum()  1; } 168 167 /// Maximum edge ID. 169 168 170 169 /// Maximum edge ID. 171 170 ///\sa id(Edge) 172 int max Id(Edge = INVALID) const { return edgeNum()  1; }171 int maxEdgeId() const { return edgeNum()  1; } 173 172 174 173 /// \brief Gives back the source node of an edge. … … 216 215 static int id(Edge e) { return e.id; } 217 216 218 static Node fromId(int id, Node) { return Node(id);}219 220 static Edge fromId(int id, Edge) { return Edge(id);}217 static Node nodeFromId(int id) { return Node(id);} 218 219 static Edge edgeFromId(int id) { return Edge(id);} 221 220 222 221 typedef True FindEdgeTag; … … 359 358 /// GridGraph graph(h, w); 360 359 /// GridGraph::NodeMap<int> val(graph); 361 /// for (int i = 0; i < graph. height(); ++i) {362 /// for (int j = 0; j < graph. width(); ++j) {360 /// for (int i = 0; i < graph.width(); ++i) { 361 /// for (int j = 0; j < graph.height(); ++j) { 363 362 /// val[graph(i, j)] = i + j; 364 363 /// } … … 504 503 /// \brief Row map of the grid graph 505 504 /// 506 /// Just returns a nRowMap for the grid graph.505 /// Just returns a RowMap for the grid graph. 507 506 GridGraph::RowMap rowMap(const GridGraph& graph) { 508 507 return GridGraph::RowMap(graph); 509 508 } 510 509 511 /// \brief Col oumn map of the grid graph512 /// 513 /// Just returns a nColMap for the grid graph.510 /// \brief Column map of the grid graph 511 /// 512 /// Just returns a ColMap for the grid graph. 514 513 GridGraph::ColMap colMap(const GridGraph& graph) { 515 514 return GridGraph::ColMap(graph);
Note: See TracChangeset
for help on using the changeset viewer.