How to update MST after deleting an edge from the graph?
问题 I have a graph represented with adjacency lists and his MST represented by parent array. My problem is that I need to delete an edge from the graph and update parent array. I've already manage to do the cases when: the edge doesn't exist; the edge is in graph but not in MST (MST doesn't change); and the edge is the only path from two nodes(in this case I return null, because the graph is not connected). What can I do when the edge is in MST and the edge in graph is in a cycle? I need to do