created a separate trait of Graph for Writer and the upcomming gui

add HierarchicGraph trait
changed all references to Graph to HierarchicGraph in Writer