6 7 A B 1 A C 2 B D 1 C D 2 C E 1 D F 2 C F 1 5 5 A B 1 A C 2 B D 2 C D 4 D E 1
Case 1: 0 1 2 # # # 1 0 # 1 # # 2 # 0 2 1 1 # 1 2 0 # 2 # # 1 # 0 # # # 1 2 # 0 Case 2: 0 1 2 # # 1 0 # 2 # 2 # 0 4 # # 2 4 0 1 # # # 1 0