def remove_node_clicked(self):
     txt = ct.remove_node(self.g, self.remove_node_t.text())
     txt = self.helper_t.toPlainText() + "\n" + txt
     #print(G.nodes)
     self.helper_t.setText(txt)
     self.remove_node_t.clear()
     ct.refresh(self.g)
 def add_edge_clicked(self):
     txt = ct.add_edge(self.g, self.add_edge_t1.text(),
                       self.add_edge_t2.text(), self.add_edge_t3.text())
     txt = self.helper_t.toPlainText() + "\n" + txt
     #print(G.edges(data=True))
     self.helper_t.setText(txt)
     self.add_edge_t1.clear()
     self.add_edge_t2.clear()
     self.add_edge_t3.clear()
     ct.refresh(self.g)
 def clear_all_clicked(self):
     self.g.clear()
     txt = "Graph cleared"
     txt = self.helper_t.toPlainText() + "\n" + txt
     self.helper_t.setText(txt)
     ct.refresh(self.g)