Added union for graphs