Fix bug for reverse edge DFS.
Add comment on unit tests and hash randomization for partially ordered
output.