I found
https://yed.yworks.com/support/qa/7109/is-there-a-way-to-hide-elements-temporarily to hide elements temporarily. While this works, it is very restrictive and time consuming to set up if you want to hide/show especially if you have multiple different nodes. Another problem is that the hiding is done by overwriting colors of the element in question. This means that you need a new rule (and way to differentiate) if elements have different colors.
For example if you want to hide all blue and green squares, you would need a property to identify them as square and as blue/green and a rule to hide blue squares, And then you need a rule to make blue squares white, one to make green squares white, one to make formerly blue squares blue again and one to to make the formerly green squares green again.
It would be much more convenient to have a display property to toggle whether a node or edge is shown based on one property. For example give a few elements the group 1 property and all others the group 2 property, and then all in group 1 could be hidden by setting the display property to false, without modifying the appearance of the elements. Making them reappear would be done by setting the display property and you wouldn't need to set the color properties for each and every element.
If such a feature already exist please point me in the right direction. Grouping unfortunately does not work because multiple elements would be in more than one group and should be shown if at least one group they are part of is not hidden. Additionally AFAICT the group containers cannot be completely invisible
Thanks in advance and best regards