def METHOD_NAME(self, bqm: BinaryQuadraticModel) -> bool:
    """Validate that problem defined by :class:`dimod.BinaryQuadraticModel`
    matches the graph provided by the sampler.
    Args:
        bqm: :class:`dimod.BinaryQuadraticModel` object to validate.
    Returns:
        Boolean indicating validity of BQM graph compared to sampler graph.
    """
    return all(variable in self.adjacency for variable in bqm.variables) and \
           all(neighbor in self.adjacency[vertex] for neighbor, vertex in bqm.quadratic)