Example #1
0
        public static List<IGroup> GetCyclicSubgroups(IGroup group)
        {
            List<IGroup> cyclicGroups = new List<IGroup>();

            foreach (IElement element in group.Elements)
            {
                IGroup newgroup = new GeneratedGroup(element);

                if (!cyclicGroups.Contains(newgroup))
                    cyclicGroups.Add(newgroup);
            }

            return cyclicGroups;
        }
Example #2
0
        public static List <IGroup> GetCyclicSubgroups(IGroup group)
        {
            List <IGroup> cyclicGroups = new List <IGroup>();

            foreach (IElement element in group.Elements)
            {
                IGroup newgroup = new GeneratedGroup(element);

                if (!cyclicGroups.Contains(newgroup))
                {
                    cyclicGroups.Add(newgroup);
                }
            }

            return(cyclicGroups);
        }