Direct observation of the topological spin configurations mediated by the substitution of rare-earth element Y in MnNiGa alloy.