public override bool tryPartition(IGraph graph, BackgroundWorker bgw, out Groups results)
{
ICollection<Motif> oMotifs;
Groups oGroups;
int i = 0;
bool rv = TryCalculateDConnectorMotifs(graph, m_iDMinimum, m_iDMaximum, bgw, out oMotifs);
if (rv == true)
{
oGroups = new Groups(oMotifs.Count);
foreach (Motif m in oMotifs)
{
oGroups.Add(i, (DConnectorMotif)m);
i++;
}
}
else oGroups = new Groups(1);
results = oGroups;
return rv;
}