Changeset 977:48962802d168 in lemon-0.x for src/lemon/smart_graph.h
- Timestamp:
- 11/10/04 21:14:32 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1365
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/lemon/smart_graph.h
r974 r977 28 28 #include <lemon/clearable_graph_extender.h> 29 29 #include <lemon/extendable_graph_extender.h> 30 31 30 #include <lemon/idmappable_graph_extender.h> 32 33 31 #include <lemon/iterable_graph_extender.h> 34 35 32 #include <lemon/alteration_observer_registry.h> 36 33 #include <lemon/default_map.h> 37 34 38 39 #include <lemon/graph_utils.h> 40 35 #include <lemon/utility.h> 41 36 42 37 namespace lemon { … … 85 80 SmartGraphBase(const SmartGraphBase &_g) : nodes(_g.nodes), edges(_g.edges) { } 86 81 82 typedef True NodeNumTag; 83 typedef True EdgeNumTag; 84 87 85 ///Number of nodes. 88 86 int nodeNum() const { return nodes.size(); } … … 324 322 }; 325 323 326 template <>327 int countNodes<SmartGraph>(const SmartGraph& graph) {328 return graph.nodeNum();329 }330 331 template <>332 int countEdges<SmartGraph>(const SmartGraph& graph) {333 return graph.edgeNum();334 }335 336 324 /// @} 337 325 } //namespace lemon 338 326 339 327 340 341 342 328 #endif //LEMON_SMART_GRAPH_H
Note: See TracChangeset
for help on using the changeset viewer.