Ligand-Driven Exchange Coupling in Graphene-Based Magnetic Materials