I have generated a dataset of pairwise distances as follows:
id_1 id_2 dist_12 id_2 id_3 dist_23
I want to cluster this data so as to identify the pattern. I have been looking at Spectral clustering and DBSCAN, but I haven't been able to come to a conclusion and have been ambiguous on how to make use of the existing implementations of these algorithms. I have been looking at Python and Java implementations so far.
Could anyone point me to a tutorial or demo on how to make use of these clustering algorithms to handle the situation in hand?