Program to perform operations on graphs such as edge union and intersection.