sorting a graph by its edge weight. python,"lst.sort(key=lambda x: x[2], reverse=True)"