QAMichaelPeng / obsidian-graphviz

Graphviz plugin for obsidian md.
MIT License
73 stars 10 forks source link

Can it use other engines like neato, circo? #5

Open ooker777 opened 2 years ago

ooker777 commented 2 years ago

From the description it seems that only dot can be used. Is that correct?

Layout Engines | Graphviz

QAMichaelPeng commented 2 years ago

Yes, I haven't used neato or circo. PR is welcome.

Goblin80 commented 1 year ago

you don't have to explicitly execute neato. just set the engine inside your graph using the layout attribute and dot will call neato for you.

sbliven commented 7 months ago

IMO this issue can be closed. @Goblin80's solution works well. Here's a working example using neato for it's ability to specify node positions.

```dot
graph G {
    layout="neato";
    n00 [ pos="0,0!" ];
    n10 [ pos="1,0!"];
    n11 [ pos="1,1!"];
    n00 -- n10 -- n11;   
    n11 -- n00;
}


![](https://kroki.io/graphviz/svg/eNpLL0osyFBwV6jmUgCCnMTK_NISW6W81MSSfCVrsFiegYFCtEJBfrGtkoGOgaKSQixU3BAubggShwsbIoQNEcJAU3R1wZrAlKE1UBCuASRkYGDNVQsA8cQgoQ==)