Added function to find centrality of a node.