Click or drag to resize
DirectedEdge Constructor
Initializes a directed edge from vertex v to vertex w with the given weight.

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public DirectedEdge(
	int v,
	int w,
	double weight
)

Parameters

v
Type: SystemInt32
the tail vertex
w
Type: SystemInt32
the head vertex
weight
Type: SystemDouble
the weight of the directed edge
Exceptions
ExceptionCondition
IndexOutOfRangeExceptionif either v or w is a negative integer
ArgumentExceptionif weight is NaN
See Also