All pastes #409923 Raw Edit

Anonymous

public text v1 · immutable
#409923 ·published 2007-03-26 00:06 UTC
rendered paste body
SORT:
    P = list of avbcvbcvbcbcll plugins

    for each p in P do
        if color[a] == WHITE
            DFS-VISIT(p)

DFS-VISIT(Plugin p)
    A = p's after list.
    
    color[p] == BLACK

    for each a in A do:
        if color[a] == WHITE
            DFS_VISIT(a)
    
    add p to the list of the sorted plugins