human
sorting a graph by its edge weight. python
assistant
Here is some code to sort list `lst` in descending order based on the second item of each tuple in it

lst.sort(key=lambda x: x[2], reverse=True)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.