The moduli space of generalized quivers