I have a number of points with a "time" property. I need a procedure that, given a total time, results in a number of clusters in which the sum of the time property do not exceed the given total time.
Example below shows a clustering when the given total time is 15:
Blue cluster is 15
Green cluster is 15
Yellow cluster is 15
Cyano cluster is 14