Naive implementation of centrality calculations