On graphs associated to ring of Guassian integers and ring of integers modulo n