/// <summary> /// Since categories may have been merged since this was created, update Color1 and Color2 /// to reflect the current categorization of Point1 and Point2. /// </summary> /// <param name="clusters">Current clustering of points.</param> public ClosestPair Relabel(Classification <UnsignedPoint, TLabel> clusters) { Color1 = clusters.GetClassLabel(Point1); Color2 = clusters.GetClassLabel(Point2); return(this); }