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; }
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); }