Return the key for ordering. Can raise a ValueError if obj can not be used to create a key, which will result in obj being dropped by the clustering method.
(self, obj: Shape)
| 322 | |
| 323 | @abstractmethod |
| 324 | def key(self, obj: Shape) -> float: |
| 325 | """ |
| 326 | Return the key for ordering. Can raise a ValueError if obj can not be |
| 327 | used to create a key, which will result in obj being dropped by the |
| 328 | clustering method. |
| 329 | """ |
| 330 | raise NotImplementedError |
| 331 | |
| 332 | def cluster(self, objectlist: Sequence[Shape]) -> List[List[Shape]]: |
| 333 | """ |
no outgoing calls