Add graph2tree.(#17)