Example #1
0
 private void Validate(TestTarjanGraphSearch.SccResult result, int i, int vc, int ec)
 {
     Assert.Equal(vc, result.ClusterVertices[i].Count);
     Assert.Equal(ec, result.ClusterEdges[i].Count);
 }
Example #2
0
 private void Validate(TestTarjanGraphSearch.SccResult result, int cc)
 {
     Console.WriteLine($"Cluster count: {result.ClusterVertices.Count}");
     Console.WriteLine($"Clusters: {result.ClusterVertices}");
     Assert.Equal(cc, result.ClusterCount);
 }