Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
maxLevel3
minLevel2
typeflat
separatorpipe

Description

Excerpt

The Digraph Macro creates directed graphs using the Graphviz language. This language is extremely versatile and powerful, but you can start with a really simple example as shown below, and then gradually improve your knowledge and create more advanced diagrams easily.

 

Graphviz resources

Include Page
Graphviz resources - Cloud
Graphviz resources - Cloud


Parameters

Include Page
Common parameters - Cloud
Common parameters - Cloud

Examples

These are some very basic examples of what you can achieve easily. For more advanced layouts and formatting, please refer to the Graphviz resources.

Macro Call

Macro Output

{digraph} 
A -> B -> C 
{digraph}

{digraph}
compound=true;
subgraph cluster0 {
  a -> b;
  a -> c;
  b -> d;
  c -> d;
}
subgraph cluster1 {
  e -> g;
  e -> f;
}
b -> f [lhead=cluster1];
d -> e;
c -> g [ltail=cluster0,
lhead=cluster1];
c -> e [ltail=cluster0];
d -> h;
{digraph}


Reference