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