Each X-element below is a pair that has a label and xy-point.
How do I cluster the X-elements using the distance between points? The code below balks because the data structure is incompatible with FindClusters. If X had points only then everything works. But here I must maintain the structure of X-elements for later use.
I don't see a FindClusters option that would allow this. If another function works then I've missed it. Thanks.
Bruce
X = {{"a", {12, 30}}, {"b", {13, 31}}, {"c", {100, 102}}, {"d", {101, 103}}};
FindClusters[X, DistanceFunction -> (EuclideanDistance[Last@#1, Last@#2] &)]
Error message is "FindClusters does not support this type of data"