Beispiel #1
0
        public PathQueueNode <T> AddQueue(PathQueueNode <T> queue)
        {
            if (List == queue.List)
            {
                return(null);
            }

            var currentQueue = this;

            var current = queue;

            while (current != null)
            {
                var next = current.Pop();
                currentQueue.AddPush(current);
                currentQueue = current;

                current = next;
            }

            return(currentQueue);
        }
Beispiel #2
0
 public void AddPush(PathQueueNode <T> node)
 {
     List.AddPush(this, node);
 }