connectivity revise
ensure consistency of connectivity matrix