def METHOD_NAME(self, mode='auto', fname=None):
    self.coloring = _compute_coloring(self.J, mode)
    if self.coloring is not None and fname is not None:
        self.coloring.save(fname)
    return self.coloring