1.1 --- a/src/lemon/smart_graph.h Wed Nov 10 19:59:14 2004 +0000
1.2 +++ b/src/lemon/smart_graph.h Wed Nov 10 20:14:32 2004 +0000
1.3 @@ -27,17 +27,12 @@
1.4
1.5 #include <lemon/clearable_graph_extender.h>
1.6 #include <lemon/extendable_graph_extender.h>
1.7 -
1.8 #include <lemon/idmappable_graph_extender.h>
1.9 -
1.10 #include <lemon/iterable_graph_extender.h>
1.11 -
1.12 #include <lemon/alteration_observer_registry.h>
1.13 #include <lemon/default_map.h>
1.14
1.15 -
1.16 -#include <lemon/graph_utils.h>
1.17 -
1.18 +#include <lemon/utility.h>
1.19
1.20 namespace lemon {
1.21
1.22 @@ -84,6 +79,9 @@
1.23 SmartGraphBase() : nodes(), edges() { }
1.24 SmartGraphBase(const SmartGraphBase &_g) : nodes(_g.nodes), edges(_g.edges) { }
1.25
1.26 + typedef True NodeNumTag;
1.27 + typedef True EdgeNumTag;
1.28 +
1.29 ///Number of nodes.
1.30 int nodeNum() const { return nodes.size(); }
1.31 ///Number of edges.
1.32 @@ -323,20 +321,8 @@
1.33 }
1.34 };
1.35
1.36 - template <>
1.37 - int countNodes<SmartGraph>(const SmartGraph& graph) {
1.38 - return graph.nodeNum();
1.39 - }
1.40 -
1.41 - template <>
1.42 - int countEdges<SmartGraph>(const SmartGraph& graph) {
1.43 - return graph.edgeNum();
1.44 - }
1.45 -
1.46 /// @}
1.47 } //namespace lemon
1.48
1.49
1.50 -
1.51 -
1.52 #endif //LEMON_SMART_GRAPH_H