lemon/bits/graph_adaptor_extender.h
changeset 717 684964884a2e
parent 580 2313edd0db0b
child 886 ece1f8a3052d
equal deleted inserted replaced
5:649ed9589ab0 6:a8472fbb32a4
    24 
    24 
    25 namespace lemon {
    25 namespace lemon {
    26 
    26 
    27   template <typename _Digraph>
    27   template <typename _Digraph>
    28   class DigraphAdaptorExtender : public _Digraph {
    28   class DigraphAdaptorExtender : public _Digraph {
       
    29     typedef _Digraph Parent;
       
    30 
    29   public:
    31   public:
    30 
    32 
    31     typedef _Digraph Parent;
       
    32     typedef _Digraph Digraph;
    33     typedef _Digraph Digraph;
    33     typedef DigraphAdaptorExtender Adaptor;
    34     typedef DigraphAdaptorExtender Adaptor;
    34 
    35 
    35     // Base extensions
    36     // Base extensions
    36 
    37 
   171 
   172 
   172   };
   173   };
   173 
   174 
   174   template <typename _Graph>
   175   template <typename _Graph>
   175   class GraphAdaptorExtender : public _Graph {
   176   class GraphAdaptorExtender : public _Graph {
       
   177     typedef _Graph Parent;
       
   178 
   176   public:
   179   public:
   177 
   180 
   178     typedef _Graph Parent;
       
   179     typedef _Graph Graph;
   181     typedef _Graph Graph;
   180     typedef GraphAdaptorExtender Adaptor;
   182     typedef GraphAdaptorExtender Adaptor;
   181 
   183 
   182     typedef typename Parent::Node Node;
   184     typedef typename Parent::Node Node;
   183     typedef typename Parent::Arc Arc;
   185     typedef typename Parent::Arc Arc;