Partial Gathering of Mobile Agents in Arbitrary Networks