Merged Dag and Amr class and renamed the new class Hgraph.