Fixed bug in check about whether partition variable can manipulate
graph.