Variable range of the RKKY interaction in edged graphene