Edges in "E" are actually bidirectional


#1

The edges in “E” have to be bidirectional (according to the test cases), which is not mentioned in the question.