Created
February 3, 2023 17:36
-
-
Save jabbalaci/28afbcd4968405e0ebc0ae6c89286875 to your computer and use it in GitHub Desktop.
graphviz example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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