예제 #1
0
        /// <summary>
        /// Create a new LinearLinkage object by parsing an LLE-e representation
        /// and modifing the underlying array so that it is in LLE representation.
        /// </summary>
        /// <remarks>
        /// This operation runs in O(n) time, but requires additional memory
        /// in form of a int[].
        /// </remarks>
        /// <param name="llee">The LLE-e representation</param>
        /// <returns>The linear linkage encoding in LLE format (with forward-links).</returns>
        public static LinearLinkage FromEndLinks(int[] llee)
        {
            var result = new LinearLinkage(llee.Length);

            result.SetEndLinks(llee);
            return(result);
        }