public StrongConnectedComponentInfo(KosarajuAlgorithm strongConnectedComponent, RGBColor[] vertexColors)
 {
     StrongConnectedComponent = strongConnectedComponent;
     VertexColors = vertexColors;
 }
Exemplo n.º 2
0
        private void GenStrongConnectedComponentColors()
        {
            StrongConnectedComponentColors = new RGBColor[StrongConnectedComponentGraph.StrongConnectedComponentCount];

            for (int i = 0; i < StrongConnectedComponentGraph.StrongConnectedComponentCount; ++i)
                StrongConnectedComponentColors[i] = new RGBColor((byte)rnd.Next(25, 255),
                                                                 (byte)rnd.Next(25, 255),
                                                                 (byte)rnd.Next(25, 255));
        }