public void AnswerQuestion() { var n1 = new Node <int>(1); var n2 = new Node <int>(2); var n3 = new Node <int>(3); var n4 = new Node <int>(4); var n5 = new Node <int>(5); var n6 = new Node <int>(6); var n7 = new Node <int>(7); var n8 = new Node <int>(8); n2.AddChild(n1); n2.AddChild(n3); n4.AddChild(n2); n5.AddChild(n4); n5.AddChild(n6); n7.AddChild(n8); n5.AddChild(n7); var tree = new GenericTree <int>(); tree.Root = n5; tree.PrintByLevel(); }