Efficient links based on folder structure

HI,
I have my notes nicely grouped by folder. How can I configure obsidian in such a way so that when I open graph I will see the links based on folder structure?