Click or drag to resize
DigraphGeneratorDag Method
Returns a random simple DAG containing V vertices and E edges. Note: it is not uniformly selected at random among all such DAGs.

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static Digraph Dag(
	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 DAG on V vertices, containing a total of E edges
Exceptions
ExceptionCondition
ArgumentExceptionif no such simple DAG exists
See Also