61 if (match(vtxdata, start))
64 vtxdata->color = white;
65 vtxdata->distance = 0;
66 vtxdata->parent = NULL;
72 vtxdata->color = white;
73 vtxdata->distance = DBL_MAX;
74 vtxdata->parent = NULL;
96 if (vtxdata->color == white && vtxdata->distance < minimum)
98 minimum = vtxdata->distance;
105 mindata->color = black;
119 relax(mindata, vtxdata, edgedata->weight);
136 if (vtxdata->color == black)
154 if (v->distance > u->distance + weight)
156 v->distance = u->distance + weight;
178 if (match(vtxdata, start))
181 vtxdata->color = white;
183 vtxdata->parent = NULL;
189 vtxdata->color = white;
190 vtxdata->key = DBL_MAX;
191 vtxdata->parent = NULL;
214 if (vtxdata->color == white && vtxdata->key < minimum)
216 minimum = vtxdata->key;
223 mindata->color = black;
238 if (vtxdata->color == white && edgedata->weight < vtxdata->key)
240 vtxdata->key = edgedata->weight;
241 vtxdata->parent = mindata;
258 if (vtxdata->color == black)
276 double min, distance, x, y;
291 if (match(tsp_vtx, start))
307 tsp_vtx->color = black;
313 tsp_vtx->color = white;
339 if (tsp_vtx->color == white)
342 distance = sqrt(pow((tsp_vtx->x - x), 2.0) + pow((tsp_vtx->y - y), 2.0));
357 selection->color = black;
394 if (match(vtxdata, start))
397 vtxdata->color = gray;
403 vtxdata->color = white;
449 if (adjvtxdata->color == white)
451 adjvtxdata->color = gray;
452 adjvtxdata->hops = vtxdata->hops+1;
466 vtxdata->color = black;
486 if (vtxdata->hops != -1)
510 vtxdata->color = white;
523 if (vtxdata->color == white)
525 if (dfs_main(gr, vtxnode, ordered) != OK)
544 vtxdata->color = gray;
557 if (vtxdata2->color == white)
560 if (dfs_main(gr, vnode, ordered) != OK)
566 vtxdata->color = black;