Centrality related codes