DAG Equivalent Class changes

Added correct doe for the DAG to properly build class nodes for
equivalent classes (still some issues I think but we'll see) and fixed
the getEquivalentClasses method to reflect this