Phase Transitions in Multicomponent Systems with Random and Scale-Free Interaction Networks