The algorithm of distance

Hello!
Would please tell me the specific algorithm of “distance” in Freefem++?