I am looking for a way to open a DOT file (.gz or .dot) in the GUI Graphviz viewer from the command line. So, if I run something like:
$ graphviz my_dot_file.gz
It should open the Graphviz program with the selected file. Somehow, for this simple task, my googling has failed me...
I am on Mac OSX Mountain Lion
For windows: dl the msi and install; Find gvedit.exe in your programs list; Open . dot file in question; Click running person on toolbar; Go to graph -> settings ; change Output file type to file type of your liking and press ok..
Graph and Digraph produce different DOT syntax and have different values for directed . Create a graph by instantiating a new Graph or Digraph object: >>> import graphviz >>> dot = graphviz. Digraph('round-table', comment='The Round Table') >>> dot <graphviz.
Graphviz is a standard package on many linux distributions. You can check if it is installed with a command like dpkg -s graphivz . If it is not installed, you should be able to install it with your system's package manager. i.e. sudo apt-get install graphviz or search 'graphivz' in the Software Center on Ubuntu.
Did you try dot
?
dot -Tx11 my_dot_file.dot
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With