remove_edge_if_undir.expected 291 B

12345678910111213141516171819
  1. original graph:
  2. 0 <--> 3 3 2
  3. 1 <--> 3
  4. 2 <--> 0 3
  5. 3 <--> 0 0 1 2
  6. 1(0,3) 2(0,3) 3(1,3) 4(2,0) 5(3,2)
  7. removing edges connecting 0 and 3
  8. 0 <--> 2
  9. 1 <--> 3
  10. 2 <--> 0 3
  11. 3 <--> 1 2
  12. 3(1,3) 4(2,0) 5(3,2)
  13. removing edges with weight greater than 3
  14. 0 <-->
  15. 1 <--> 3
  16. 2 <-->
  17. 3 <--> 1
  18. 3(1,3)