Onset of power-law scaling behavior in idiotypic random and scale-free networks