lbehnke / hierarchical-clustering-java

Implementation of an agglomerative hierarchical clustering algorithm in Java. Different linkage approaches are supported.
141 stars 79 forks source link

hang when trying to cluster 0 items #31

Open barrybecker4 opened 5 years ago

barrybecker4 commented 5 years ago

Instead of an infinite loop, there should be an exception thrown. Granted this is an edge case, but probably should be handled.