Desenhe o gráfico do Networkx usando PLT.Pausa

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