Esempio n. 1
0
        public static Node GenerateTree()
        {
            Node root = TreeGenerator.CreateRoot("KingShan", Gender.MALE)
                        .AddSpouse(new Node("QueenAnga", Gender.FEMALE))
                        .AddChild(new Node("Ish", Gender.MALE))
                        .AddChild(new Node("Chit", Gender.MALE)
                                  .AddSpouse(new Node("Ambi", Gender.FEMALE))
                                  .AddChild(new Node("Drita", Gender.MALE)
                                            .AddSpouse(new Node("Jaya", Gender.FEMALE))
                                            .AddChild(new Node("Jata", Gender.MALE))
                                            .AddChild(new Node("Driya", Gender.FEMALE)
                                                      .AddSpouse(new Node("Mnu", Gender.MALE))
                                                      )
                                            )
                                  .AddChild(new Node("Vrita", Gender.MALE))
                                  )
                        .AddChild(new Node("Vich", Gender.MALE)
                                  .AddSpouse(new Node("Lika", Gender.FEMALE))
                                  .AddChild(new Node("Vila", Gender.MALE)
                                            .AddSpouse(new Node("Jnki", Gender.FEMALE))
                                            .AddChild(new Node("Lavnya", Gender.FEMALE))
                                            .AddSpouse(new Node("Gru", Gender.MALE))
                                            )
                                  )
                        .AddChild(new Node("Satya", Gender.FEMALE)
                                  .AddSpouse(new Node("Vyan", Gender.MALE))
                                  .AddChild(new Node("Satvy", Gender.FEMALE)
                                            .AddSpouse(new Node("Asva", Gender.MALE))
                                            )
                                  .AddChild(new Node("Savya", Gender.MALE)
                                            .AddSpouse(new Node("Krpi", Gender.FEMALE))
                                            .AddChild(new Node("Kriya", Gender.MALE))
                                            )
                                  .AddChild(new Node("Saayan", Gender.MALE)
                                            .AddSpouse(new Node("Mina", Gender.FEMALE))
                                            .AddChild(new Node("Misa", Gender.MALE))
                                            )
                                  );


            return(root);
        }
Esempio n. 2
0
 static void Main(string[] args)
 {
     Node root = TreeGenerator.GenerateTree();
 }