Module for generating graphs in the Dot language (aka GraphViz).
using GraphvizDotLang: digraph, node, edge, attr, save
g = digraph(bgcolor="beige", rankdir="LR", ranksep="1") |>
attr(:edge; fontname="Cantarell") |>
attr(:node; shape="circle", style="filled,wedged") |>
node("start"; label="", fillcolor="red:green:blue") |>
node("end"; label="", fillcolor="cyan:magenta:yellow") |>
edge("start", "end"; label="invert!")
save(g, ARGS[1])- You need the Graphviz package to be installed (Debian:
apt install graphviz, Fedora:dnf install graphviz, pick your poison). Thedotcommand is expected to be somewhere in your$PATH. - Install the package the usual way by typing
]add GraphvizDotLangin the REPL.
- Please check the documentation pages.
- You will also need the extensive documentation of Graphviz itself.
- Run
make allto build the documentation locally and also run the examples.
Copyright 2022 Netherlands eScience Center, Johan Hidding. Licensed under Apache v2, see LICENSE