Beispiel #1
0
        /// <summary>
        /// Initializes a new instance of the PathWithOrientation class.
        /// Copies the input path info to a new one.
        /// </summary>
        /// <param name="other">Path info to copy.</param>
        public PathWithOrientation(PathWithOrientation other)
        {
            if (other == null)
            {
                throw new ArgumentNullException("other");
            }

            this.nodes             = new List <DeBruijnNode>(other.Nodes);
            this.IsSameOrientation = other.IsSameOrientation;
        }
Beispiel #2
0
        /// <summary>
        /// Initializes a new instance of the PathWithOrientation class.
        /// Copies the input path info to a new one.
        /// </summary>
        /// <param name="other">Path info to copy.</param>
        public PathWithOrientation(PathWithOrientation other)
        {
            if (other == null)
            {
                throw new ArgumentNullException("other");
            }

            this.nodes = new List<DeBruijnNode>(other.Nodes);
            this.IsSameOrientation = other.IsSameOrientation;
        }