def METHOD_NAME(self):
    """
    Returns the QUBO encoding of this problem.
    Returns
    -------
    The QUBO encoding of this problem.
    """
    # Extract terms and weights from the problem definition
    terms, weights = self.terms_and_weights()
    return QUBO(
        self.G.number_of_nodes(), list(terms), list(weights), self.problem_instance
    )