diff -r 04591f9a4173 -r 48962802d168 src/lemon/smart_graph.h --- a/src/lemon/smart_graph.h Wed Nov 10 19:59:14 2004 +0000 +++ b/src/lemon/smart_graph.h Wed Nov 10 20:14:32 2004 +0000 @@ -27,17 +27,12 @@ #include #include - #include - #include - #include #include - -#include - +#include namespace lemon { @@ -84,6 +79,9 @@ SmartGraphBase() : nodes(), edges() { } SmartGraphBase(const SmartGraphBase &_g) : nodes(_g.nodes), edges(_g.edges) { } + typedef True NodeNumTag; + typedef True EdgeNumTag; + ///Number of nodes. int nodeNum() const { return nodes.size(); } ///Number of edges. @@ -323,20 +321,8 @@ } }; - template <> - int countNodes(const SmartGraph& graph) { - return graph.nodeNum(); - } - - template <> - int countEdges(const SmartGraph& graph) { - return graph.edgeNum(); - } - /// @} } //namespace lemon - - #endif //LEMON_SMART_GRAPH_H