Example #1
0
        public BnBNode(BnBNode parent)
        {
            _counter++;
            _index = _counter;

            _parent   = parent;
            Forbidden = false;
            Viewed    = false;
            Nodes     = new BnBNodesCollection();
        }
Example #2
0
 public BnBNode(BnBNode parent, BnBNodeData data)
     : this(parent)
 {
     Data = data;
 }
Example #3
0
 /// <summary>
 /// Добавляет новый узел в коллекцию
 /// </summary>
 /// <param name="node"></param>
 public void Add(BnBNode node)
 {
     _nodesList.Add(node);
 }