Have a look at general trees.