Not causing a scene at the funeral is a good etiquette rule to follow. If this person approaches you, you may say, Excuse me, and walk away, purposefully, but without any show of anger as if you were called off to deal with something urgent. You can go to the bathroom for a minute if need be. Miss Manners is indifferent so long as it convinces anyone watching that your departure was unrelated to the person.