Click or drag to resize
IndexMaxPQKeyChangeKey Method
Change the key associated with index i to the specified value.

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public void ChangeKey(
	int i,
	Key key
)

Parameters

i
Type: SystemInt32
the index of the key to change
key
Type: Key
change the key associated with index i to this key
Exceptions
ExceptionCondition
IndexOutOfRangeExceptionunless 0 <= i < maxN
See Also