which planet has the greatest gravitational attraction
Otherwise, it exerts the greatest force (co-attraction) on other large planets. Jupiter, because of its mass. But the actual effective gravitational force falls off greatly as you go farther from the planet, so that it only affects smaller objects when they are relatively nearby, like its moons.