def METHOD_NAME(self):
    self._graph_widget = QProximityGraph(self.instance, self)
    hlayout = QHBoxLayout()
    hlayout.addWidget(self._graph_widget)
    hlayout.setContentsMargins(0, 0, 0, 0)
    self.setLayout(hlayout)