fix to cython centrality