Skip to content

Instantly share code, notes, and snippets.

@dnozay
Created May 20, 2020 21:07
Show Gist options
  • Save dnozay/1b758cbf73643ed00440d56a6717484b to your computer and use it in GitHub Desktop.
Save dnozay/1b758cbf73643ed00440d56a6717484b to your computer and use it in GitHub Desktop.
dot examples
digraph cloud_platform {
rankdir=LR
splines=ortho
subgraph cluster_1 {
11 -> 12 -> 13 -> 14
}
subgraph cluster_2 {
21 -> 22 -> 23 -> 24
}
subgraph cluster_3 {
31 -> 32 -> 33 -> 34
31 -> 32 -> 33 -> 34
}
subgraph cluster_4 {
41 -> 42 -> 43 -> 44
}
subgraph _layout_only {
node [color=invis,shape=point]
edge [color=invis]
_left
_left -> 11
_left -> 21
_left -> 31
_left -> 41
}
subgraph _cross {
// no weight; go back to the left
edge [weight=0;style=dashed]
14 -> 21
24 -> 31
34 -> 41
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment