Given below is an undirected weighted connected graph with a partly constructed spanning tree:
Which edges with the weight cannot be added to the current spanning tree? Print all such edges to the field below. Keep in mind that the blue edges are already added to the spanning tree, so you should not consider them.
Your output is expected to be in the following format (each edge on a separate line):
1 2
2 3
3 4