@cached<EOL><INDENT>def max_distance(self):<DEDENT>
if self.distances.shape[<NUM_LIT:0>] == <NUM_LIT:0>:<EOL><INDENT>return <NUM_LIT:0><EOL><DEDENT>else:<EOL><INDENT>return self.distances.max()<EOL><DEDENT>
The maximum value in the distances matrix.