When I try different layout/engine of the graphviz graph (e.g., neato, circo, see here: https://graphviz.org/), the streamlit seems not render the graph correspondingly. Any suggestions?
Hey @Jiangang_Hao,
can you please provide a small example with minimum code to to reproduce the error?
Also some screenshots would be helpful. Thanks for your bug report.
Best regards
Chris
Hi @chris_klose,
Sorry for the slow reply and I just saw this message. The issue is that there are different layout selection in graphviz (called engines), but when you choose different layout, the output from the streamlit side is the same. For example,
import graphviz
g = graphviz.Graph(âGâ, filename=âprocess.gvâ, engine=âsfdpâ)
g.edge(ârunâ, âintrâ)
g.edge(âintrâ, ârunblâ)
g.edge(ârunblâ, ârunâ)
g.edge(ârunâ, âkernelâ)
g.edge(âkernelâ, âzombieâ)
g.edge(âkernelâ, âsleepâ)
g.edge(âkernelâ, ârunmemâ)
g.edge(âsleepâ, âswapâ)
g.edge(âswapâ, ârunswapâ)
g.edge(ârunswapâ, ânewâ)
g.edge(ârunswapâ, ârunmemâ)
g.edge(ânewâ, ârunmemâ)
g.edge(âsleepâ, ârunmemâ)
g.view()
if you change the engine from engine=âsfdpâ to engine=âneatoâ, streamlit rendered output is the same. More examples can be found at: Examples â graphviz 0.20.1 documentation
Thanks a lot.
-Jiangang