Filter graph based on line match

Hello Obsidian Community! Thank you in advance for your help.

What I’m trying to do

I am trying to filter a local graph in order to exclude notes that match exclusively based on a line in the note that also has an additional pattern. I’ll try to explain with an example.

I have 3 notes: connector and nonconnector which both link to connected.

Here is the graph with all 3:

graph-full

Both connector and nonconnector reference [[connected]] within a TODO line, but only connector references [[connected]] additionally in a non-TODO line:

nonconnector

connector

I would like to filter the connected graph so that it shows links only to notes that are linked not exclusively in the TODO line, i.e., there must be a reference to [[connected]] in a line that does not include TODO in order for the note to be included on the graph. The graph should look like this:

graph-ignore-todo

Things I have tried

I have tried to filter using -line(TODO [[connected]]) which however excludes both connector and nonconnector. I also played around with booleans to try to add back in notes with [[connected]] elsewhere can’t seem to get it working.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.