lemon/graph_utils.h
changeset 2550 f26368148b9c
parent 2539 c25f62a6452d
child 2553 bfced05fa852
equal deleted inserted replaced
70:3d1413d37ab6 71:73d5131a877a
  2523     GRAPH_TYPEDEFS(typename G);
  2523     GRAPH_TYPEDEFS(typename G);
  2524     typedef G Graph;
  2524     typedef G Graph;
  2525 
  2525 
  2526   protected:
  2526   protected:
  2527 
  2527 
  2528     class AutoNodeMap : public DefaultMap<Graph, Node, Edge> {
  2528     class AutoNodeMap : public DefaultMap<G, Node, Edge> {
  2529     public:
  2529     public:
  2530 
  2530 
  2531       typedef DefaultMap<Graph, Node, Edge> Parent;
  2531       typedef DefaultMap<G, Node, Edge> Parent;
  2532 
  2532 
  2533       AutoNodeMap(const Graph& graph) : Parent(graph, INVALID) {}
  2533       AutoNodeMap(const G& graph) : Parent(graph, INVALID) {}
  2534       
  2534       
  2535       virtual void add(const Node& node) {
  2535       virtual void add(const Node& node) {
  2536 	Parent::add(node);
  2536 	Parent::add(node);
  2537 	Parent::set(node, INVALID);
  2537 	Parent::set(node, INVALID);
  2538       }
  2538       }