コード例 #1
0
        public void Test()
        {
            var g = GraphGenerator.dag4StronglyConnectedComponents();

            var scc = new StronglyConnectedComponents(g);

            for (var v = 0; v < g.V(); ++v)
            {
                console.WriteLine(v + "\t:" + scc.componentId(v));
            }
        }