Is there a way to have graph links with different colors?

Say I have three nodes A, B and C. Is it possible to have the link A-B as normal (gray), the link A-C in blue, and the link B-C in red?

2 Likes

Mermaid graphs?

but does it work with the graph made by Obsidian?

Mermaid can achieve this.

Example code:

graph LR
    A-->B
    B-->C
    A-->C
	linkStyle 1 stroke:red
	linkStyle 2 stroke:blue

Effect:

image

Resource:

https://mermaid-js.github.io/mermaid/#/flowchart?id=styling-links

1 Like

There is no way to do this in the native graph of Obsidian (not the Mermaid one)? Maybe via a plugin or so?

Juggl allows me to do this via CSS. The red edges mean the two nodes having them contradict to each other.

1 Like

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