Skip to content

Instantly share code, notes, and snippets.

@jabbalaci
Created February 3, 2023 17:36
Show Gist options
  • Save jabbalaci/28afbcd4968405e0ebc0ae6c89286875 to your computer and use it in GitHub Desktop.
Save jabbalaci/28afbcd4968405e0ebc0ae6c89286875 to your computer and use it in GitHub Desktop.
graphviz example
// https://en.wikipedia.org/wiki/Graph_(discrete_mathematics)
digraph D {
graph [concentrate=true];
layout=neato;
// rankdir=LR;
edge [dir=none];
6 -> 4 -> 5;
4 -> {6 3 5};
5 -> 1;
1 -> 2;
2 -> 3;
3 -> 4;
5 -> 2;
}
// $ dot -T png graph.dot -o example.png
// $ dot -T pdf graph.dot -o example.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment