Centrality measures and thermodynamic formalism for complex networks.