depth first preorder,inorder,topological order(rpo)