Zaslat SMS: Graphene as a flexible template for controlling magnetic interactions between metal atoms