Correlation between centrality metrics and their application to the opinion model