let centralityInDegree graph = centralityDegree graph G.pred