src/work/alpar/smart_graph.h
changeset 156 a34e5a909e97
parent 130 571003783202
child 157 ee17030e5f47
equal deleted inserted replaced
6:6264e39d704a 7:c9b8e5247bd5
    74   public:
    74   public:
    75 
    75 
    76     /* default constructor */
    76     /* default constructor */
    77 
    77 
    78     SmartGraph() : nodes(), edges() { }
    78     SmartGraph() : nodes(), edges() { }
       
    79     SmartGraph(const SmartGraph &_g) : nodes(_g.nodes), edges(_g.edges) { }
    79     
    80     
    80     ~SmartGraph()
    81     ~SmartGraph()
    81     {
    82     {
    82       for(std::vector<DynMapBase<NodeIt> * >::iterator i=dyn_node_maps.begin();
    83       for(std::vector<DynMapBase<NodeIt> * >::iterator i=dyn_node_maps.begin();
    83 	  i!=dyn_node_maps.end(); ++i) (**i).G=NULL;
    84 	  i!=dyn_node_maps.end(); ++i) (**i).G=NULL;