Tree Layout for graph