src/VertexColoring.Graphs/Generator.cs
/// <summary>
/// Creates new random connected graph with <paramref name="vertexCount"/> vertices
/// and up to <paramref name="edgeCount"/> connecting them. Some edges may be duplicates
/// on creation and as a result, be lost (duplicate edges are ignored).
/// </summary>
/// <param name="vertexCount">Number of vertices to create.</param>
/// <param name="edgeCount">Number of edges to create.</param>
/// <param name="random">Random to use while randomizing edge associations.</param>
/// <returns>Created graph.</returns>
Creates new random connected graph with  vertices
and up to  connecting them. Some edges may be duplicates
on creation and as a result, be lost (duplicate edges are ignored).
Creates new random connected graph with vertices and up to connecting them . Some edges may be duplicates on creation and as a result be lost ( duplicate edges are ignored ) .
public static Graph RandomConnectedGraph(int vertexCount, int edgeCount, Random random)
        {
            CheckRandomArguments(vertexCount, edgeCount);
            if (random == null)
            {
                throw new ArgumentNullException(nameof(random));
            }
            return RandomConnectedGraphInternal(vertexCount, edgeCount, random);
        }
public static Graph RandomConnectedGraph ( int vertexCount , int edgeCount , Random random ) { CheckRandomArguments ( vertexCount , edgeCount ) ; if ( random == null ) { throw new ArgumentNullException ( nameof ( random ) ) ; } return RandomConnectedGraphInternal ( vertexCount , edgeCount , random ) ; }
Creates new random connected graph with  vertices
and up to  connecting them.
Creates new random connected graph with vertices and up to connecting them .
None
vertexCount
int
Number of vertices to create.
Number of vertices to create .
edgeCount
int
Number of edges to create.
Number of edges to create .
random
Random
Random to use while randomizing edge associations.
Random to use while randomizing edge associations .