예제 #1
0
        /// <summary>
        /// Creates a dependency graph based on the given dependency graph argument
        /// It will have the same dependencies and be identical, however they can be manipluated
        /// indiviudally without effecting the other
        /// </summary>
        /// <param name="dg"></param>
        public DependencyGraph(DependencyGraph dg)
        {
            Dictionary <string, HashSet <String> > d = dg.getDictionary();

            dictionary = new Dictionary <string, HashSet <string> >();
            foreach (KeyValuePair <string, HashSet <string> > pair in d)
            {
                dictionary.Add(pair.Key, pair.Value);
            }
            size = dg.Size;
        }