glejeune / node-graphviz

Node.js interface to the GraphViz graphing tool
http://algorithmique.net
MIT License
197 stars 58 forks source link

Support edge labels #24

Closed bugeats closed 5 years ago

bugeats commented 7 years ago
digraph G {
    a -> b [label="a to b"];
    b -> c [label="another label"];
}
glejeune commented 7 years ago
var e = g.addEdge(n1, n2);
e.set("label", "hello world");
sneko commented 8 months ago

I don't know why but it's actually not working on my side.

EDIT: I switched to https://github.com/ts-graphviz/ts-graphviz , labels work great and no longer "false output success" when there is something wrong not generating the graph. Still, thanks for you work!