Search on graph view only on selected folders

I would like to show only connections of files from selected paths. How to write a filter to achieve it in graph view?

path:"ONE" and path:"TWO"

path:"ONE" or path:"TWO"

doesn’t work

The boolean operators must be uppercase.

path:"folder one" AND path:"folder two"
path:"folder one" OR path:"folder two"