Connecting complex networks to nonadditive entropies