Density, as far as orbital calculations are concerned, are only important if you can get closer to this super dense core, closer to the center of the mass. The closer you can get, the faster a stable orbit must be, and the stronger the Gravitational force, for lack of better words. When something is denser overall, or less dense overall, matters much since you cannot get any closer than the surface of either object. The overall density then has the greatest effect for potential gravitational influence.