add tree display for graphs, minors changes