modified disconnectivity graph centre function