Versions Compared

Key

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

Table of Contents
maxLevel3
minLevel2
typeflat
separatorpipe

Warning
titleDeprecation Removal notice:

Please note that

the 

the URL user

 and 

and URL

password parameters are deprecated and will be removed on March 31, 2022

user password macro parameters were removed (see Deprecation notice: URL user and URL user password parameters). We recommend

using

using profiles to access

your

external data

from remote locations

.



Description

The Graph Macro creates undirected 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

{graph}
e
subgraph clusterA {
    a -- b;
    subgraph clusterC {
        C -- D;
    }
}
subgraph clusterB {
    d -- f
}
d -- D
e -- clusterB
clusterC -- clusterB
{graph} 

Image Modified

{graph}
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;
{graph}


Reference

 Image Modified