Set a different color for a path
问题 I have a weighted graph,G, extracted from a text file: i j distance 1 2 6000 1 3 4000 2 1 6000 2 6 5000 .... And I have specific a route (not a shortest path) that I want to plot on graph G, i.e. [1, 2, 6, 7] that starts from node 1, end at node 7 by visiting node 2 and node 6. Here the code I've tried. But since Im new in python and networkx package as well, I couldn't get the result that Im looking for. G = nx.read_edgelist('Graph.txt', data=(('weight',float),)) r=[1,2,6,7] edges=[] route