Click or drag to resize
Digraph Constructor (TextInput)
Initializes a digraph from the text input stream. The format is the number of vertices V, followed by the number of edges E, followed by E pairs of vertices, with each entry separated by whitespace.

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public Digraph(
	TextInput input
)

Parameters

input
Type: Algs4NetTextInput
the text input stream
Exceptions
ExceptionCondition
IndexOutOfRangeExceptionif the endpoints of any edge are not in prescribed range
ArgumentExceptionif the number of vertices or edges is negative
FormatExceptionif the edges in the file are in an invalid input format
See Also