Graphviz: How to go from .dot to a graph?

后端 未结 11 1413
傲寒
傲寒 2020-11-27 08:44

I can\'t seem to figure this out. I have a .dot file, which is valid according to the syntax. How do I use graphviz to convert this into an image?

(note that I\'m on

相关标签:
11条回答
  • 2020-11-27 09:27
    dot -Tps input.dot > output.eps
    dot -Tpng input.dot > output.png
    

    PostScript output seems always there. I am not sure if dot has PNG output by default. This may depend on how you have built it.

    0 讨论(0)
  • 2020-11-27 09:34

    dot file.dot -Tpng -o image.png

    This works on Windows and Linux. Graphviz must be installed.

    0 讨论(0)
  • 2020-11-27 09:36

    You can use a very good online tool for it. Here is the link dreampuf.github.io Just replace the code inside editer with your code.

    0 讨论(0)
  • 2020-11-27 09:39

    there is no requirement of any conversion.

    We can simply use xdot command in Linux which is an Interactive viewer for Graphviz dot files.

    ex: xdot file.dot

    for more infor:https://github.com/rakhimov/cppdep/wiki/How-to-view-or-work-with-Graphviz-Dot-files

    0 讨论(0)
  • 2020-11-27 09:39

    For window user, Please run complete command to convert *.dot file to png:

    C:\Program Files (x86)\Graphviz2.38\bin\dot.exe" -Tpng sampleTest.dot > sampletest.png.....
    

    I have found a bug in solgraph that it is utilizing older version of solidity-parser that does not seem to be intelligent enough to capture new enhancement done for solidity programming language itself e.g. emit keyword for Event

    0 讨论(0)
提交回复
热议问题