add option to layout the graph file horizontally