Fixed a local transitivity bug, because of int adjlists.