from PyQt5.QtWidgets import QApplication, QWidget from networkx import DiGraph import networkx as nx