Analyzer.FanMotifDetector.tryPartition C# (CSharp) Метод

tryPartition() публичный Метод

public tryPartition ( IGraph graph, BackgroundWorker bgw, Groups &results ) : bool
graph IGraph
bgw System.ComponentModel.BackgroundWorker
results Groups
Результат bool
        public override bool tryPartition(IGraph graph, BackgroundWorker bgw, out Groups results)
        {
            ICollection<Motif> oMotifs;
            Groups oGroups;
            int i = 0;
            bool rv = TryCalculateFanMotif(graph, bgw, out oMotifs);
            if (rv == true)
            {
                oGroups = new Groups(oMotifs.Count);
                foreach (Motif m in oMotifs)
                {
                    oGroups.Add(i, (FanMotif)m);
                    i++;
                }
            }
            else oGroups = new Groups(1);
            results = oGroups;
            return rv;
        }