def updateScenegraph(self, dagNodes):
        if dagNodes and len(dagNodes) == 1:
            liveSceneGraph = self.dag.buildSceneGraph(dagNodes[0])
            self.sceneGraphWidget.rebuild(liveSceneGraph, dagNodes[0])
        else:
            self.sceneGraphWidget.rebuild(None, None)
Rebuild the scenegraph widget based on the given dag nodes.
dataset/ETHPy150Open andrew-gardner/dependsworkflow/depends/depends_main_window.py/MainWindow.updateScenegraph