| 567 | bool is_checked |
| 568 | > |
| 569 | unsigned long graph_kernel_1<T,E,mem_manager,is_checked>:: |
| 570 | add_node ( |
| 571 | ) |
| 572 | { |
| 573 | try |
| 574 | { |
| 575 | std::shared_ptr<node_type> n(new node_type); |
| 576 | n->idx = nodes.size(); |
| 577 | nodes.push_back(n); |
| 578 | return n->idx; |
| 579 | } |
| 580 | catch (...) |
| 581 | { |
| 582 | clear(); |
| 583 | throw; |
| 584 | } |
| 585 | } |
| 586 | |
| 587 | // ---------------------------------------------------------------------------------------- |
| 588 |