Text this: Greatest common dwisors and least common multiples of graphs