Click or drag to resize
GraphGeneratorSimple Method (Int32, Int32)
Returns a random simple graph containing V vertices and E edges.

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static Graph Simple(
	int V,
	int E
)

Parameters

V
Type: SystemInt32
the number of vertices
E
Type: SystemInt32
the number of vertices

Return Value

Type: Graph
a random simple graph on V vertices, containing a total of E edges
Exceptions
ExceptionCondition
ArgumentExceptionif no such simple graph exists
See Also