Visualise the output of .dot file using GraphViz / dot (Linux)

12 Mar 2014 . category: code . Comments

Something I managed to miss from earlier Graph related posts, was how to visualise the graph using GraphViz

With your output .dot file you can simply call:

dot -Tps filename.dot -o outfile.ps

Will generate ps file for the jpg version you can simply modify the line to:

dot -Tjpeg filename.dot -o outfile.jpg

Simple an easy?


outfile_mg
Stuart James  


Stuart James

Assistant Professor in Visual Computing at Durham University. Stuart's research focus is on Visual Reasoning to understand the layout of visual content from Iconography (e.g. Sketches) to 3D Scene understanding and their implications on methods of interaction. He is currently a co-I on the RePAIR EU FET, DCitizens EU Twinning, and BoSS EU Lighthouse. He was a co-I on the MEMEX RIA EU H2020 project coordinated at IIT for increasing social inclusion with Cultural Heritage. Stuart has previously held a Researcher & PostDoc positions at IIT as well as PostDocs at University College London (UCL), and the University of Surrey. Also, at the University of Surrey, Stuart was awarded his PhD on visual information retrieval for sketches. Stuart holds an External Scientist at IIT, Honorary roles UCL and UCL Digital Humanities, and an international collaborator of ITI/LARSyS. He also regularly organises Vision for Art (VISART) workshop and Humanities-orientated tutorials and was Program Chair at British Machine Conference (BMVC) 2021.