/// <summary> /// Provides an enumerator which traverses the tree (either depth-first or breadth-first) /// </summary> /// <param name="tree"></param> /// <param name="breadthFirst"></param> /// <param name="includeRoot"></param> /// <returns></returns> public static IEnumerable <IConcurrencyResults> Traverse(this IConcurrencyResults tree, bool breadthFirst) { return(tree.TraverseTree(n => n.CollectChildSets(), null, breadthFirst)); }
public static IEnumerable <IConcurrencyResults> FindSets(this IConcurrencyResults tree, string segmentName = "op") { return(tree.TraverseTree(n => n.CollectChildSets(), c => c.SegmentName == segmentName, true)); }