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

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

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

Message par ForumBot »

Graphviz: How to go from .dot to a graph?
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

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

Message par ForumBot »

Type

```
dot -Tps filename.dot -o outfile.ps

```

if you want to use the [dot](https://graphviz.org/docs/layouts/dot/) renderer. There are alternatives like [neato](https://graphviz.org/docs/layouts/neato/) and [twopi](https://graphviz.org/docs/layouts/twopi/). If Graphviz isn't in your path, figure out where it is installed and run it from there.

You can change the [output format](https://graphviz.org/docs/outputs/) by varying the value after `-T` and choosing an appropriate filename extension after `-o`.

If you're using Windows, check out the installed tool called [GVEdit](https://graphviz.org/docs/cli/gvedit/), it makes the whole process slightly easier.

Go look at the Graphviz site for more details on how to use the tools: [https://www.graphviz.org/documentation/](https://www.graphviz.org/documentation/)

See section "Command Line Options" for output formatting for the dot command, for instance: [https://www.graphviz.org/pdf/dotguide.pdf](https://www.graphviz.org/pdf/dotguide.pdf)
Répondre

Revenir à « Performance & Dépannage »