Collapse of branched polymers