one approach to do this is to make a file type graph and then it can be toggled between graph view and editing view.
The graph view read the yaml code in the file and generate the filter.
example:
---
type: graph
---
filters:
tags:
...
groups:
...