Roger Federer celebrates a straight-sets win over Kevin Anderson at the ATP Finals in London tonight ©Getty Images

Roger Federer’s hope of winning a seventh title at the Association of Tennis Professionals Finals at London’s 02 Arena remains alive following his 6-4, 6-3 win over Kevin Anderson tonight.

Dominic Thiem’s defeat of Japan's Kei Nishikori in the earlier group match meant that Federer only had to win a set to be sure of earning one of the two qualifying places for the semi-finals.

But the 37-year-old Swiss player finished with a flourish to put his opening defeat in this tournament by  Nishikori firmly behind him and qualify top of the four-man group.

"These round robin formats are not straight-forward you feel like you can lose a match and still go on," Federer said.

"We're used to you lose, you leave, you don't hang around.

"From that standpoint it was more straight-forward for me today."

Austria's Dominic Thiem, left, kept his hopes of reaching the last four at the ATP Finals in London alive with a 6-1, 6-4 win over Japan's Kei Nishikori ©Getty Images
Austria's Dominic Thiem, left, kept his hopes of reaching the last four at the ATP Finals in London alive with a 6-1, 6-4 win over Japan's Kei Nishikori ©Getty Images

Despite losing, Federer's South African opponent - who beat him in this year’s Wmbledon semi-final - was also assured a place in the last four having won his previous two matches against Nishikori and Thiem.

Thiem, the world number eight, had lost to Anderson and Federer in straight sets in his previous group matches.

But the young Austrian had kept his hopes of reaching the last four briefly in play as he beat Nishikori 6-1, 6-4, meaning he would progress if Anderson managed to beat Federer in straight sets.

The result also meant that Federer would only need to win a set against Anderson in their later match in order to advance.

So the man with 20 Grand Slams to his name is now back on course to contest the final o Sunday (November 18) against the man with 14 Grand Gams to his name, world number one Slovak Djokovic.