Click or drag to resize
Graph Constructor (TextInput)
Initializes a graph from an initialized TextInput 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 Graph(
	TextInput input
)

Parameters

input
Type: Algs4NetTextInput
in the 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