Welcome. Efficiency and even more elegance can be subjective, but I would question the very relevance of both the workaround and the intentions of the initial approach:
- Some variation of the workaround may be useful for quick linking, but this is not how to create parent-child relationships. Should rather use properties and Generate explicit hierarchy out of them.
- The initial approach may be useful as an index (see The contextual sidebar: query current page and organize pages in indexes), but not for Graph view.
- For a useful Graph view, it takes considerably more effort (see How to leverage Logseq’s linked structure?).