Dear Dan,
Thanks for the suggestion. I am able to plot interactively.
=====================================
plt.ion()
elist = edge_list
# draw the basic, initial graph
nx.draw(G,pos, node_color='w', edge_color='k',
width=0.5,with_labels=True,alpha=0.8)
time.sleep(1)
# Now, begin updating by coloring nodes and edges
for nlist in MyNodeList:
# update: color each level nodes
nx.draw_networkx_nodes(G,pos,nodelist=nlist,
node_color='b',node_size=200,alpha=0.8)
time.sleep(1)
if i < len(elist):
nx.draw_networkx_edges(G,pos, edgelist=elist
[i],edge_color='r',
width=2,with_labels=True,alpha=0.8)
plt.plot() #-----> used this display the updated node
colors on top of previous graph plot.
time.sleep(1)
plt.show() #-- > used this to display the final graph and retain
in until I kill the figure window.
=====================================
Thanks again,
Sri.