The first line contains an integer(
) --- the number of test cases.
The first line of each test case contains two integers(
),
(
) --- the number of vertices, the number of operations.
The nextlines describe the operations, where the
-th line contains three integers
,
,
(
) for the first four operations and one integer
for the last (fifth) kind of operation.
It is guaranteed thatand
.
For each operation of the fifth kind, output “YES” or “NO” in one line to indicate the answer, with the same order as the input.