All pastes #409922 Raw Edit

Someone

public text v1 · immutable
#409922 ·published 2007-03-26 00:04 UTC
rendered paste body
SORT:
    P = list of all 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