Clusters with bounded diameter
Hierarchical clustering, with complete linkage will find clusters with a maximum pairwise distance i.e. diameter.

You need two parameters:


Distance function
Maximum distance = height where to cut the tree