calculate friends of degree 3 with removing duplicate friend paris