Нарисуйте график Networkx с помощью plt.pause

plt.clf()
nx.draw(G)
plt.pause(1) # 1 here is time gap
z_z