Click or drag to resize
Edge Constructor (Int32, Int32, Double)
Initializes an edge between vertices v and w of an undirected graph with the given weight.

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

Parameters

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