src/work/list_graph.h
changeset 217 fc549fac0dd0
parent 208 1e36245f905d
child 232 cb87fb9d4c94
equal deleted inserted replaced
1:dd22d9c50150 2:714191a4eb84
   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: