Ejemplo n.º 1
0
        static void Scc()
        {
            var builder = new HwDirectedGraphBuilder2(File);
            var graph = builder.Build();

            var scc = new Scc(graph);
            var result = scc.Execute();

            var result2 = result.OrderByDescending(x => x).Take(10);
            var result3 = string.Join(",", result2);
            Console.WriteLine(result3);
        }
 public void Init()
 {
     _graphBuilder = new HwDirectedGraphBuilder2("directed_graph_04.txt");
     _graph = _graphBuilder.Build();
     _scc = new Scc(_graph);
 }