added graphs and trees