write out graph to view WIP