Contact selection without party_relationship module

Indeed this is exactly the notion of distance that party_relationship introduce.
Maybe it could be doable to integrate part of it in the party module.