added graph options
added option for directed / undirected graphs
added option for layout direction