From 97eeccd1659ad505dbe3e7758538c5cfef3fa7a7 Mon Sep 17 00:00:00 2001 From: Bryce Adelstein-Lelbach Date: Mon, 8 Nov 2010 17:05:55 +0000 Subject: [PATCH] Added comment suggested by volodya. [SVN r66456] --- src/engine/src/modules/order.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/engine/src/modules/order.c b/src/engine/src/modules/order.c index c06f6713b..d77943a79 100644 --- a/src/engine/src/modules/order.c +++ b/src/engine/src/modules/order.c @@ -50,8 +50,10 @@ void do_ts(int** graph, int current_vertex, int* colors, int** result_ptr) if (colors[adjacent_vertex] == white) do_ts(graph, adjacent_vertex, colors, result_ptr); - //else if (colors[adjacent_vertex] == gray) - //; /* This is loop. Not sure what to do... */ + /* The vertex is either black, in which case we don't have to do + anything, a gray, in which case we have a loop. If we have a loop, + it's not clear what useful diagnostic we can emit, so we emit + nothing. */ } colors[current_vertex] = black; **result_ptr = current_vertex;