An introduction with a few examples How it works in theory:

Slides:



Advertisements
Similar presentations
HTML popo.
Advertisements

Creation of Automaton Classes from Graphical Models and Automatic Solution for Inverse Problem Yuri A. Gubin student of SPb SU ITMO supervised by Anatoly.
Cascading Style Sheets
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
C++ Interface for Making Visualized Graphs By N.K. Bonsack and E.Harcourt Abstract Software engineers and computer scientists alike frequently come upon.
Microsoft Office Illustrated Working with Advanced Tools and Masters.
Creating a Poster It is easier than you think! 1.
19-MAY-2006GraphViz in Dependancy Analysis of BaBar SoftwarePage: 1 Using GraphViz in Dependancy Analysis of BaBar Software Igor A. Gaponenko LBL / NERSC.
HTML. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is a markup language A markup language.
Learning PowerPoint Starting and Customizing a PowerPoint Slide Show.
CP2022 Multimedia Internet Communication1 HTML and Hypertext The workings of the web Lecture 7.
INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,
Essentials of HTML Class 4 Instructor: Jeanne Hart
Design, Multimedia, & Web Technologies.  Define vocabulary associated with the MS Publisher 2007 environment.  Identify elements included in Publisher.
Return to Outline Copyright © 2011 by Maribeth H. Price 3-1 Labeling and annotation.
Exploring the Macromedia Flash Workspace – Lesson 2 1 Exploring the Macromedia Flash Workspace Lesson 2.
INTRODUCTION TO CSS. TOPICS TO BE DISCUSSED……….  Introduction Introduction  Features of CSS Features of CSS  Creating Style Sheet Creating Style Sheet.
TEMPLATE DESIGN © Professional Template for a 24x36 poster presentation Your name and the names of the people who have.
WEEK -1 ACM 262 ACM 262 Course Notes. HTML What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML.
Microsoft Visual Basic 2012: Reloaded Fifth Edition Chapter One An Introduction to Visual Basic 2012.
TEMPLATE DESIGN © Professional Template for a 36x48 poster presentation Your name and the names of the people who have.
Chapter 11 Enhancing an Online Form and Using Macros Microsoft Word 2013.
AP CSP: Pixelation – B&W/Color Images
PAPER TITLE (TEMPLATE FOR A 841MM X 594MM POSTER PRESENTATION)
Dive Into® Visual Basic 2010 Express
The poster title goes here and here
4.01 Cascading Style Sheets
CSS Layouts: Grouping Elements
PAPER TITLE (TEMPLATE FOR A 841MM X 594MM POSTER PRESENTATION)
CSCI-235 Micro-Computer Applications
Hyper Text Markup Language
Algorithms Problem: Write pseudocode for a program that keeps asking the user to input integers until the user enters zero, and then determines and outputs.
Professional Template for a poster presentation
Research Conclave 2017 Template for a 4 ft (height) x 3ft (width) poster presentation Your name and the names of the people who have contributed to this.
Word Lesson 6 Working with Graphics
The poster title goes here and here
The names of the authors The affiliation names go here
Professional Template for a 36x48 poster presentation
The names of the authors The affiliation names go here
Poster Template for a 1189mm x 841mm poster presentation
Poster title Author(s) Institution(s) Corresponding author’s Name
MESA UTAH CLEAN AIR SOLUTIONS COMPETION
Presentation Skills Workshop.
OPTIONAL LOGO HERE Professional Template for a 36 inch high x 48 inch wide Poster Presentation Your name and the names of the people who have contributed.
Poster title Author(s) Institution(s) Corresponding author’s Name
Formatting a Workbook Part 1
MESA UTAH CLEAN AIR SOLUTIONS COMPETION
Generating Control-Flow Graph using Open-Source S/W
Web Programming– UFCFB Lecture 11
Cascading Style Sheets™ (CSS)
May 14, 2015 Ferris Wheel 3-D transition effect and pictures (Basic)
PAPER TITLE (TEMPLATE FOR A 841MM X 594MM POSTER PRESENTATION)
The poster title goes here and here
The poster title goes here and here
Training & Development
Title of a Poster Paper for IW-FCV2019
TITLE ABT-PP-56 Logo here Author’s Name Discussion Introduction
Professional Template for a 36x48 poster presentation
Graphs & Trees.
The poster title goes here and here
Professional Template for a 36x48 poster presentation
AN INTRODUCTION BY FAITH BRENNER
Title of presentation | Presentation by [Enter details in 'Header & Footer' field 18/05/2019.
4.01 Cascading Style Sheets
Generating Control-Flow Graph using Open-Source S/W
PAPER TITLE (Template for ICETMIE Abstract )
The poster title goes here and here
The poster title goes here and here
The poster title goes here and here
Random Stuff Colors Sizes CSS Shortcuts.
Presentation transcript:

Graphviz http://www.graphviz.org/ An introduction with a few examples How it works in theory: Text file with graph description in DOT language --> Graphviz --> graph picture. In practice: 1. ...\graphviz\bin\dot -Tjpg myGraph.dot -o myGraph.jpg <graphviz command> <options> <DOT text file> <output> 2. Display/process the result in your favourite image viewer/processor. 3. Consult the documentation for (much) more options.

Graphviz http://www.graphviz.org/ Input DOT text file Output graph Example01 { 0 -- 1 0 -- 2 1 -- 3 1 -- 4 2 -- 4 3 -- 4 } The Input code examples should be more or less self-explanatory. For more details see the documentation http://www.graphviz.org/Documentation.php or the web/google in general.

Graphviz http://www.graphviz.org/ Input DOT text file Output // Node names may be arbitrary. // Comments (also /* and */ ) // are not processed. graph Example02 { Zero -- One Zero -- TWO One -- "exactly 3" One -- 4 TWO -- 4 "exactly 3" -- 4 } The nodes and edges layout and position is controlled by Graphviz. It is an automated process with no guarantee that the user will be happy with the result. More advanced option of Graphviz and DOT language allow the user to control graph layout nearly(!) perfectly. Be aware that "nearly" can be sometimes quite far from ideal.

Graphviz http://www.graphviz.org/ Input DOT text file Output // Various edge attributes // can be specified in [] brackets. graph Example03 { 0 -- 1 0 -- 2 [penwidth=3] 1 -- 3 [penwidth=5, color=red] 1 -- 4 [color=green] 2 -- 4 [color="#00A0FF"] // follows //usual RGB scheme 3 -- 4 }

Graphviz http://www.graphviz.org/ Input DOT text file // Nodes might be listed separately // and their attributes might be specified // like those of the edges. graph Example04 { 0 [color=blue] 1 [shape=square] 2 [penwidth=5] 3 [color=blue,shape=square,penwidth=5] // unlisted nodes assume default attributes 0 -- 1 0 -- 2 1 -- 3 1 -- 4 2 -- 4 3 -- 4 } Output

Graphviz http://www.graphviz.org/ Input DOT text file // Default node and edge attributes might be redefined. // Note the keywords 'node' and 'edge'. // All subsequently listed nodes/edges are affected. graph Example05 { node [style=filled,fillcolor=yellow,penwidth=3] 0 3 4 node [shape=square] 1 2 // Node 5 and 6 attributes will be // [style=filled,fillcolor=yellow, penwidth=3,shape=square] 0 -- 1 0 -- 2 1 -- 3 edge [penwidth=5,color=brown] 1 -- 4 2 -- 4 edge [color=blue] // penwidth=5 still holds: 3 -- 4 4 -- 5 4 -- 6 } Output

Graphviz http://www.graphviz.org/ Input DOT text file // Some other useful node atributes: // Smaller node sizes and a different font. graph Example06 { node [ shape=oval // try point, circle, house, octagon ... fixedsize=true width=0.40 height=0.30 fontname="Courier-Bold" ] 0 -- 1 0 -- 2 1 -- 3 1 -- 4 2 -- 4 3 -- 4 4 -- "FIVE is 5." // text overflows the shape 4 -- 6 } Output

Graphviz http://www.graphviz.org/ Input DOT text file // Directed graphs differ from undirected ones // by the keyword "digraph" // and the edge symbol "->". digraph Example07 { node [ shape=oval fixedsize=true width=0.40 height=0.30 fontname="Courier-Bold" ] 0 -> 1 0 -> 2 1 -> 3 1 -> 4 2 -> 4 3 -> 4 4 -> 5 4 -> 6 } Output

Graphviz http://www.graphviz.org/ Input DOT text file Graphviz http://www.graphviz.org/ // Binary tree. Note the edge labels // and the global graph attributes. digraph Example08 { graph [rankdir=LR,bgcolor="#F0F0FF"] // LR ... drawing direction: Left-Right node [shape=oval,fixedsize=true, width=0.40, height=0.30, style=filled] 0 [fillcolor=black,fontcolor=white ] node [fillcolor=white,fontcolor=black ] 1 2 3 4 5 6 node [fillcolor=maroon,fontcolor=white ] 7 8 9 10 11 12 13 14 0 -> 1 [label="Up"] 0 -> 2 [label="Down"] 1 -> 3 [label="Up"] 1 -> 4 [label="Down"] // ... // few lines missing to fit the text to the slide 6 -> 13 [label="Up"] 6 -> 14 [label="Down"] } Output

Where to go next? Easy intro: http://www.tonyballantyne.com/graphs.html http://www.graphviz.org/pdf/dotguide.pdf Try experimenting online: http://graphs.grevian.org/graph All Details: http://www.graphviz.org/Gallery.php http://www.graphviz.org/Documentation.php http://www.graphviz.org/content/faq Warning Graphviz comes with seven graph picture generating engines based on different strategies and algorithms: Circo, dot, fdp, neato, osage, sfdp, twopi. Often, dot and fdp work best but that also depends on the particular graph. Experimentation and patience are recommended to get the desired result. The pictures in this presentation were produced by different engines.