Files in excluded directory should be removed from local graph aswell as main graph view

I took up kepano’s idea to add categories with bases links into the properties of every note. ( kepano-obsidian/Notes/2023 Japan Trip.md at main · kepano/kepano-obsidian · GitHub ) The idea is super. The problem is now the links in the local graph exploded. With graph depth 1 it look like this:

But with Depth 2 the graph is out of control:

Could it be a way to filter out the links from bases?