fix the bug for transitive closure
Merge branch 'master' of https://github.com/fredfeng/Scuba