Topological Sorting by tails

:
$s/:$/!/m
s/\(.*\)\<\(.*\)!/\2\n\1/
$P
:1
s/^\(\(.*\)\n.*\) \2\>/\1/
t1
$D
N
b

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page