Lines Matching refs:graph
118 vector<node*> graph;
121 graph.push_back(u);
135 while(!graph.empty()) {
137 vector<node*>::iterator i=graph.begin();
138 for(;i!=graph.end();++i) {
144 if(i==graph.end() && !graph.empty()) {
148 graph.erase(i);
156 for(unsigned i=0; i<graph.size(); ++i) {
157 delete graph[i];
165 vector<node*> graph;
169 graph.push_back(u);
192 while(!graph.empty()) {
194 vector<node*>::iterator i=graph.begin();
195 for(;i!=graph.end();++i) {
201 if(i==graph.end() && !graph.empty()) {
205 graph.erase(i);
213 for(unsigned i=0; i<graph.size(); i++) {
214 delete graph[i];