Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Obsidian Bidirectional Links and Knowledge Graph

Obsidian Bidirectional Links and Knowledge Graph

Bidirectional links are Obsidian's core capability that distinguishes it from traditional note-taking software. It is not a simple hyperlink jump, but a mechanism that lets knowledge perceive each other - when you connect two notes, the relationship is visible at both ends simultaneously.


Internal links: [[ ]] syntax

In Obsidian, using [[note name]] creates a link to another note.

After typing [[, Obsidian automatically shows a search box that supports fuzzy matching of note names.

Example

My study notes

Study

[

[

Python Basics

]

]

you first need to understand

[

[

Variables and Data Types

]

]

.

These concepts are also used in

[

[

Object-Oriented Programming

]

]

.

You can refer to

[

[

Design Patterns

]

]

for the factory pattern implementation.

Click the link to jump to the corresponding note.

If the linked note does not exist yet, Obsidian shows it as a gray link, and clicking it automatically creates the corresponding blank note. This feature lets you naturally build a knowledge framework: draft links first, then fill in content note by note.

Alias links

Sometimes a note's file name is not natural enough. Using the [[file name|display text]] syntax makes the link text fit the context better.

Example

When learning object-oriented programming,

[

[

python-oop-advanced-

2024

|

Python Object-Oriented Explained

]

]

is a great reference article.

A better approach is to set aliases in the target note's Front Matter, after which all links to that note can use the alias:

Example


aliases

:

 - Python OOP

  - Python Object-Oriented

  - Python Class Tutorial


Recommended alias usage: define a standard alias in the note's Front Matter, instead of using the pipe symbol each time to | rewrite temporarily. This way aliases are managed centrally, and a single change takes effect across the whole vault.


Block references and heading references

Besides linking whole notes, you can also precisely reference specific paragraphs or headings within a note.

Heading reference

Use [[note name#heading]] to link directly to a heading position within a note.

Example

See details in

[

[

Python Basics

#list comprehension]] for the example code.

For configuration methods, refer to

[

[

Environment Setup

#macOS installation steps]].

Block reference

Add a ^blockID at the end of the target paragraph, then reference that paragraph in other notes with [[note name#^blockID]].

Example

-- define a block in the "Python Basics" note --

List comprehension is a concise syntax for creating lists in Python,

which can write loops and conditional checks in a single line. ^list-comp-def

Reference this paragraph block in another note:

Example

As described in

[

[

Python Basics

#^list-comp-def]] as described, list comprehension can greatly simplify code.

A referenced block displays the original content as an embedded render in the target note, not just a jump link.

Embed an entire note or paragraph

Adding an exclamation mark before the link, ![[note name]], embeds the full content of the target note into the current note.

Example

Common code snippets

!

[

[

Python List Operations Quick Reference

]

]

!

[

[

Environment Setup

#environment variable configuration]]

Embedding is suitable for summary notes - for example, create a "common references" note that embeds the content of multiple quick-reference notes, forming a dashboard view.


Backlinks panel

This is one of Obsidian's most valuable features.

When you open a note, the "Backlinks" section of the right-side panel lists all other notes that reference the current note.

For example, you wrote a "closure" note. One day you linked it while writing "Python Decorators". A few weeks later you linked it again in "JavaScript Advanced Functions".

The moment you open "Closure", these associations appear automatically before you - no manual recording or index maintenance needed.

Linked Mentions vs Unlinked Mentions

The Backlinks panel is divided into two sections:

Unlinked Mentions is a great tool for finding "missing links" - you may have mentioned the word "closure" in several notes but forgotten to add the bidirectional link.


Graph view

The graph view visualizes the link relationships between notes.

Local graph

In any note, click the top-right "More options -> Open local graph" to display the link network centered on the current note.

The local graph's default display depth is 1 level (direct neighbors), adjustable to 2-5 levels to see broader connections.

Global graph

Click the graph icon in the left sidebar to view the link relationship graph of the entire vault.

Meaning of symbols in the graph:

Graph grouping and filtering

In the global graph settings, you can create grouping rules:

Example

Group

#1: Programming notes

  - path: programming

/

  - color: blue

Group

#2: Reading notes

  - path: reading

/

  - color: green

Group

#3: Diary

  - path: diary

/

  - color: gray

Through grouping, the graph can clearly show the scale and cross-relationships of different domains at a glance.

Filters can hide nodes that do not need to be displayed by keyword, tag, or file path, avoiding an overly dense graph.

The graph is more like a mirror reflecting your existing knowledge structure, rather than a navigation tool. Do not spend too much time making it "look nice" - its real value is exposing isolated knowledge points and unexpected cross-domain connections.


Unlinked Mentions: Completing your knowledge graph

The Unlinked Mentions section at the bottom of the Backlinks panel lists all places that mention the current note's title but have not added a bidirectional link.

Regularly checking Unlinked Mentions is a low-cost way to organize knowledge: click the "Link" button next to each item to add the [[bidirectional link]] with one click.

This is like "patching leaks" in your knowledge network, turning originally invisible connections into explicit links.


Practical tips for bidirectional-link writing

Stage Approach
When first writing Boldly add [[links]] to any concept you think of, even if the target note does not exist yet. Build the framework first, then fill in content.
When finishing Quickly glance at Unlinked Mentions, review other keywords mentioned during editing, and decide whether to add links.
Regular maintenance Browse the global graph and observe whether there are many isolated nodes. If so, consider connecting them to existing core notes.
Avoid overdoing it Not every sentence needs to become a link. Only link notes that substantially help understand the current content; fewer is better than too many.