tree as Graph with Nodes