review stack and tree\, graph