How to exclude nodes from specific folders in the default graph view?

Hello folks,
I have been using Obsidian for note-taking in my research for the past 3-4 years. Recently, I’ve encountered a situation where I am transitioning from Topic 1 (which is already documented in my Obsidian) to Topic 2, on which I have begun working. I would like to exclude the nodes from Topic 1 entirely from my default graph view. Is there a way to disable specific folders in the graph view? Just to let you know the topics which I wish to disable from the view are organized in specific folder. I can delete them, but I don’t want to ask I have spent several hours tagging them. It would be immensely helpful to have this fixed and I would be super grateful for suggestions on how to deal with this.

P.s: I am fine if all internal links of X folders gets deleted so that Topic 1 which is located in X folder won’t show up in my default graph view. Is there a way to do it?

I’ve not used the graph view much, but can’t you use -path: /your/folder or something similar in the search field?