Does not seem to handle certain position related attributes
Examples include attributes like rankdir.
Versions of involved components used
- Julia v1.6.3
- GraphViz.jl v0.2.0
- IJulia v1.23.2
Snippet for replicating the problem.
digraph graphname {
rankdir="BT";
overlap=false;
a [shape="box",URL="https://www.google.com",label="Game",target="_blank"];
b [shape="box",URL="https://www.google.com"];
a -> b [minlen=10,taillabel = "taillabel"];
}
What is seen in the local jupyter notebook

What is see when using graphviz to generate a PNG from the same dot snippet

First of all, thank you for this package!
I also observe that there is a problem with rankdir.
digraph so
{
rankdir = LR;
A -> B -> C -> D;
}
Does not work as expected (at least under Pluto)
Expected result:

Result under pluto.jl:

Same here. Could it be the version of graphviz?
Hi! I also experience this issue in Pluto with GraphViz 7.0.2. Does anyone find a way to solve this or diagnose where the issue comes from?
I have created a pull request that should fix this. Can you check with ] add https://github.com/abelsiqueira/GraphViz.jl#38-add-engine-attribute. I don't know how to do add custom pkgs on Pluto.
@abelsiqueira
Thanks, I have tested it, on my side it works

To reproduce:
under bash
mkdir /tmp/test_pluto
Start Julia and ] to reach ** Pkg** mode
activate "/tmp/test_pluto"
add Pluto
add https://github.com/abelsiqueira/GraphViz.jl#38-add-engine-attribute
switch back to Julia mode
using Pluto; Pluto.run()
Then under Pluto
- Cell 1
begin
import Pkg
Pkg.activate("/tmp/test_pluto")
Pkg.status("GraphViz")
end
- Cell 2
using GraphViz - Cell 3
dot"""
digraph so
{
rankdir = LR;
A -> B -> C -> D;
}
"""