Example #1
0
        private static List <List <int> > deepcopyPaths(List <List <int> > paths)
        {
            List <List <int> > result;

            result = new List <List <int> >();

            foreach (List <int> path in paths)
            {
                result.Add(Deepcopy.deepCopyListInt(path));
            }

            return(result);
        }
Example #2
0
        private static List <List <int> > appendPathsToPath(List <int> basePath, List <List <int> > appendingPaths)
        {
            List <List <int> > resultList;

            resultList = new List <List <int> >();

            foreach (List <int> iterationpath in appendingPaths)
            {
                List <int> workingCopy;

                workingCopy = Deepcopy.deepCopyListInt(basePath);
                workingCopy.AddRange(iterationpath);

                resultList.Add(workingCopy);
            }

            return(resultList);
        }