public StrongConnectedComponentInfo(KosarajuAlgorithm strongConnectedComponent, RGBColor[] vertexColors) { StrongConnectedComponent = strongConnectedComponent; VertexColors = vertexColors; }
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)); }