結果 : differentiate between tree and graph data structure