Updated adjacency graph calculation to symmetrize.