Friday, February 7, 2014

Okay...  So I keep finding myself googling for these GraphViz templates.  Here's the ones im using for my OpenStack Savanna preso this tuesday.

This should be interesting to anyone who is either (1) interested in giving an openstack savanna talk or (2) stealing my slides and modifying them or (3) needs to spice up their graphviz chops.

UML style diagrams

node_group_template_master -> cluster_template [arrowhead = diamond];
node_group_template_slave -> cluster_template [arrowhead = diamond];
 cluster_template -> cluster

Subgraphs

Here's how to make subgraphs in.  I've used this to show the three stages of oozie. In this case, a super distilled subgraph : Russian dolls of the oozie layers.  
digraph G {
      subgraph cluster_a {
        Bundle;
    subgraph cluster_0 {   
           coordinator;
           subgraph cluster_1 {
           workflow;}}}}


ER type cardinality diagrams

And finally, you can use different "arrowhead" implementations "crow",  "diamond", and "empty".
 digraph cont  {
   cluster_group -> node_group [arrowhead = crow];
}
 

0 comments:

Post a Comment