예제 #1
0
        static void Builder()
        {
            var builder = new HwDirectedGraphBuilder2(File);
            var graph = builder.Build();

            Console.WriteLine(graph.Edges.Count);
            Console.WriteLine(graph.Nodes.Count);
        }
예제 #2
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);
        }