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: Algs4NetAssembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic 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:
Digrapha random simple DAG on
V vertices, containing a total
of
E edges
Exceptions
See Also