diff --git a/lemon/full_graph.h b/lemon/full_graph.h --- a/lemon/full_graph.h +++ b/lemon/full_graph.h @@ -31,7 +31,7 @@ class FullDigraphBase { public: - typedef FullDigraphBase Graph; + typedef FullDigraphBase Digraph; class Node; class Arc; @@ -169,10 +169,10 @@ /// /// \sa FullGraph class FullDigraph : public ExtendedFullDigraphBase { + typedef ExtendedFullDigraphBase Parent; + public: - typedef ExtendedFullDigraphBase Parent; - /// \brief Constructor FullDigraph() { construct(0); } @@ -226,8 +226,6 @@ class FullGraphBase { - int _node_num; - int _edge_num; public: typedef FullGraphBase Graph; @@ -238,6 +236,9 @@ protected: + int _node_num; + int _edge_num; + FullGraphBase() {} void construct(int n) { _node_num = n; _edge_num = n * (n - 1) / 2; } @@ -537,10 +538,10 @@ /// /// \sa FullDigraph class FullGraph : public ExtendedFullGraphBase { + typedef ExtendedFullGraphBase Parent; + public: - typedef ExtendedFullGraphBase Parent; - /// \brief Constructor FullGraph() { construct(0); }