void process_edge(int x, int y) {
    int class;    /* edge class */

    class = edge_classification(x, y);

    if (class == BACK) {
        if (entry_time[y] < entry_time[low[x]]) {
            low[x] = y;
        }
    }

    if (class == CROSS) {
        if (scc[y] == -1) {   /* component not yet assigned */
            if (entry_time[y] < entry_time[ low[x]]) {
                low[x] = y;
            }
        }
    }
}
