▎ 摘 要
Inducing a robust long-range magnetic order in diamagnetic graphene remains a challenge. While nitrogen-doped graphene is reported to be a promising candidate, the corresponding exchange mechanism remains unclear and is essential to tune further and manipulate magnetism. Within the first-principles calculations, we systematically investigate the local moment formation and the concurrent interaction between various nitrogen-containing defect complexes. The importance of adatom diffusion on the differential defect abundance is discussed. The itinerant magnetism in the graphitic N defects is found to be fundamentally different from the more localized moments in the vacancy-containing N complexes. The magnetic interaction between the complexes is found to depend on the concentration, complex type, sublattice, separation, and orientation. We propose that the direct exchange mechanism between the delocalized magnetic moment originating from the itinerant pi electron at the prevalent graphitic complexes to be responsible for the observed ferromagnetism. We show that B codoping further improves ferromagnetism. Present results will assist in the microscopic understanding of the current experimental results and motivate new experiments to produce robust magnetism following the proposed synthesis strategy.