Adds reverse graph and traverse edges to adjacency list.