Комментарии:
I got this error . how to correct this? TypeError: Failed to convert edge data (['1', '3', '1', '4', '3', '5', '4', '6']) to dictionary.
ОтветитьHow can I remove bridge edges if there are any?
Ответитьif i want to read weighted edges from textfile and draw the graph using it
ОтветитьThank you so much ..after 1 and half hour google searchI got here what I want.
Ответитьin my computer the numbers of nodes doesn't appear, why?
Ответитьhello , I have a question we can do that ???
import networkx as nx
from tkinter import *
fenetre=TK()
g=nx.read_edgeList('one.txt',create_using=nx.graph(),nodetype=int)
print(nx.info(g))
b=Button(fenetre,text='Implementer graph',command=nx.draw(g))
b.pack()
fenetre.mainloop()
and thank you