O'Reilly logo

Mastering Internet of Things by Peter Waher

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Visualizing Graphviz graphs

As an example, the IoT Gateway provides a code visualization of Graphviz diagram code. Instead of presenting the actual code, the code is converted to an image, and the image is presented. This requires Graphviz to be installed on the machine. The following example is taken from the Graphviz reference documentation. The following diagram shows how the code is presented in the rendered HTML output:

```dot: Fancy graph digraph G { size ="4,4"; main [shape=box]; /* this is a comment */ main -> parse [weight=8]; parse -> execute; main -> init [style=dotted]; main -> cleanup; execute -> { make_string; printf} init -> make_string; edge [color=red]; // so is this main -> printf [style=bold,label="100 times"]; make_string ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required