Example #1
0
        public int CountBranches()
        {
            int count = 1;

            if (nodeA != null)
            {
                count += nodeA.CountBranches();
            }

            if (nodeB != null)
            {
                count += nodeB.CountBranches();
            }
            return(count);
        }