fixed vertex accessing via an edge when incident vertices are not in the correct partition.