use tsort.
results updated.