lemon/graph_utils.h
changeset 2004 b8f10207e3d6
parent 1999 2ff283124dfc
child 2006 00d59f733817
equal deleted inserted replaced
43:275e86acbf9f 44:76880e0e07b7
  1513 
  1513 
  1514     class AutoNodeMap : public DefaultMap<_Graph, Key, int> {
  1514     class AutoNodeMap : public DefaultMap<_Graph, Key, int> {
  1515     public:
  1515     public:
  1516 
  1516 
  1517       typedef DefaultMap<_Graph, Key, int> Parent;
  1517       typedef DefaultMap<_Graph, Key, int> Parent;
       
  1518       typedef typename Parent::Graph Graph;
  1518 
  1519 
  1519       AutoNodeMap(const Graph& graph) : Parent(graph, 0) {}
  1520       AutoNodeMap(const Graph& graph) : Parent(graph, 0) {}
  1520       
  1521       
  1521       virtual void add(const Key& key) {
  1522       virtual void add(const Key& key) {
  1522 	Parent::add(key);
  1523 	Parent::add(key);
  1625 
  1626 
  1626     class AutoNodeMap : public DefaultMap<_Graph, Key, int> {
  1627     class AutoNodeMap : public DefaultMap<_Graph, Key, int> {
  1627     public:
  1628     public:
  1628 
  1629 
  1629       typedef DefaultMap<_Graph, Key, int> Parent;
  1630       typedef DefaultMap<_Graph, Key, int> Parent;
       
  1631       typedef typename Parent::Graph Graph;
  1630 
  1632 
  1631       AutoNodeMap(const Graph& graph) : Parent(graph, 0) {}
  1633       AutoNodeMap(const Graph& graph) : Parent(graph, 0) {}
  1632       
  1634       
  1633       virtual void add(const Key& key) {
  1635       virtual void add(const Key& key) {
  1634 	Parent::add(key);
  1636 	Parent::add(key);