If someone edges out someone else, they just manage to beat them or get in front of them in a game, race, or contest.
France edged out the British team by less than a second. [VERB PARTICLE noun]
McGregor's effort was enough to edge Johnson out of the top spot. [VERB noun PARTICLE + of]
[Also
VERB noun
PARTICLE]