Is it possible to remove nodes with a certain tag from the list generated by the "BFS" function?

I know English as well as with Sharp, so this is all online translator. But this line of code is similar to the one that I need.

Thank you very much.

Could you still help with this?

And could you help with this one?
Is it possible to do it in one line of code too? Color the line. How to do this with a large code, I understood approximately.