def METHOD_NAME(self):
    """
    Returns the QUBO encoding of this problem.
    Returns
    -------
    The QUBO encoding of this problem.
    """
    n = self.G.number_of_nodes() + self.G.number_of_edges() - 2
    # Extract terms and weights from the problem definition
    terms, weights = self.terms_and_weights()
    # Convert to Ising equivalent since variables are in {0, 1} rather than {-1, 1}
    ising_terms, ising_weights = QUBO.convert_qubo_to_ising(n, terms, weights)
    return QUBO(n, ising_terms, ising_weights, self.problem_instance)