compareEG function

Compare two DAGs or EGs