equal
deleted
inserted
replaced
426 |
426 |
427 class EdgeIt : public Edge { |
427 class EdgeIt : public Edge { |
428 friend class ListGraph; |
428 friend class ListGraph; |
429 //protected: |
429 //protected: |
430 public: //for alpar |
430 public: //for alpar |
431 EdgeIt(const ListGraph&) { |
431 EdgeIt(const ListGraph& G) { |
432 node_item* v=G._first_node; |
432 node_item* v=G._first_node; |
433 if (v) edge=v->_first_out_edge; else edge=0; |
433 if (v) edge=v->_first_out_edge; else edge=0; |
434 while (v && !edge) { v=v->_next_node; if (v) edge=v->_first_out_edge; } |
434 while (v && !edge) { v=v->_next_node; if (v) edge=v->_first_out_edge; } |
435 } |
435 } |
436 public: |
436 public: |