k means with similarity matrix

hello;
I want to know if I can cluster k means using a similarity matrix as input,
This similarity matrix was calculated on a database containing drug names that I want to group according to spelling similarity,
To calculate the similarity matrix I used the BISIM function,
thank you for all your help

k-means in SNAP works on a pixel-based input product. It cannot process tables or letters of data.

please, what kind of clustering methods can be used from a similarity matrix?

this is a forum on earth observation methods - we might not be the best advisors regarding language processing :slight_smile:

Ok, thanks