Have you checked the spin density distributions in your so-called "FM" and "AFM" states? If the energies of these two states are identical, you may need to check their electronic structures.
If the ribbons are wide enough, the interaction between two edge spins could be neglected. In that case, what you treat is the spin along one edge.
This is also applicable to the spin induced by two isolated impurities.