Because it is not compatible and will matplotlib 3.1 network2.2 \ 2.3 version, such as running statement
nx.draw(DG,with_labels=True, node_size=900, node_color = colors)
When will complain, after all matplotlib 19.5 was made, so I reinstall matplotlib to 2.2.3 to solve