Click or drag to resize
IndexMinPQKeyKeyOf Method
Returns the key associated with index i.

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public Key KeyOf(
	int i
)

Parameters

i
Type: SystemInt32
i the index of the key to return

Return Value

Type: Key
the key associated with index i
Exceptions
ExceptionCondition
IndexOutOfRangeExceptionunless 0 <= i < maxN
InvalidOperationExceptionno key is associated with index i
See Also