double best_d = 0;
uint dir = (open[0] <= open[1]) ? 0 : 1;
w = NULL;
- msg(L_DEBUG, "Dijkstra: dir=%d", dir);
+ // msg(L_DEBUG, "Dijkstra: dir=%d", dir);
CLIST_FOR_EACH(struct graph_vertex *, v, graph_vertices)
{
if (!w)
die("Path not found");
- msg(L_DEBUG, "Dijkstra: closing vertex #%jd (d=%f, dir %d)", w->node->o.id, best_d, dir);
+ // msg(L_DEBUG, "Dijkstra: closing vertex #%jd (d=%f, dir %d)", w->node->o.id, best_d, dir);
w->state[dir] = 2;
if (w->state[!dir] == 2)
{
struct graph_vertex *x = e->dest;
double d = w->dist[dir] + e->length;
- msg(L_DEBUG, "Neighbor: #%jd, state=%d, dist=%f vs. %f", x->node->o.id, x->state[dir], x->dist[dir], d);
+ // msg(L_DEBUG, "Neighbor: #%jd, state=%d, dist=%f vs. %f", x->node->o.id, x->state[dir], x->dist[dir], d);
if (x->state[dir] == 0 || x->dist[dir] > d)
{
if (x->state[dir] == 2)