Shanghai masters federer edges closely behind nadal

I think there may be some confusion here!

The Shanghai Masters is a professional tennis tournament, and it's not possible for Roger Federer to be "edging closely behind" Rafael Nadal in a tournament that hasn't taken place yet.

However, I can provide some context on the current rankings and head-to-head record between Federer and Nadal.

As of the 2022 ATP rankings, Rafael Nadal is currently ranked No. 2, while Roger Federer is ranked No. 5. Nadal has been one of the most dominant players in the world for many years, and Federer has been struggling with injuries and form in recent times.

In terms of their head-to-head record, Nadal leads Federer 24-16. However, Federer has won their last two meetings, including a thrilling five-set match at the 2019 Wimbledon Championships.

If you're interested in knowing more about the Shanghai Masters or the current state of tennis, I'd be happy to help!