src/work/list_graph.h
changeset 405 a2d8ec38e8db
parent 368 0beed7a49063
child 409 7ab7f083760a
equal deleted inserted replaced
12:1c1c3bfd8b2a 13:6c235aab4950
    27     class OutEdgeIt;
    27     class OutEdgeIt;
    28     class InEdgeIt;
    28     class InEdgeIt;
    29     class SymEdgeIt;
    29     class SymEdgeIt;
    30     template <typename T> class NodeMap;
    30     template <typename T> class NodeMap;
    31     template <typename T> class EdgeMap;
    31     template <typename T> class EdgeMap;
    32   private:
    32 //  private:
    33     template <typename T> friend class NodeMap;
    33     template <typename T> friend class NodeMap;
    34     template <typename T> friend class EdgeMap;
    34     template <typename T> friend class EdgeMap;
    35  
    35  
    36     template <typename T>
    36     template <typename T>
    37     class NodeMap {
    37     class NodeMap {
    73       } 
    73       } 
    74       void update() { container.resize(G.edge_id); }
    74       void update() { container.resize(G.edge_id); }
    75       void update(T a) { container.resize(G.edge_id, a); }
    75       void update(T a) { container.resize(G.edge_id, a); }
    76     };
    76     };
    77 
    77 
       
    78   private:
    78     int node_id;
    79     int node_id;
    79     int edge_id;
    80     int edge_id;
    80     int _node_num;
    81     int _node_num;
    81     int _edge_num;
    82     int _edge_num;
    82 
    83