Click or drag to resize
DigraphGeneratorSimple Method (Int32, Int32)
Returns a random simple digraph 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 Digraph Simple(
	int V,
	int E
)

Parameters

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

Return Value

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