Collective behaviors in complex networks