Visiting Two Graves

Q: Is there a prohibition or recommendation not to visit another grave if one is at a cemetery for another funeral?
A: People say that it should not be done but there is in fact no problem.