Created
February 14, 2021 14:41
-
-
Save larsks/45ecace9319ec2d25d44ebdc500462e7 to your computer and use it in GitHub Desktop.
drawing git history with graphviz
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
digraph G { | |
rankdir="LR"; | |
bgcolor="white"; | |
node[width=0.15, height=0.15, shape=circle, color=black, fontcolor=black]; | |
edge[weight=2, arrowhead=none, color=black]; | |
master[shape=box]; | |
topic[shape=box]; | |
node[group=main]; | |
1 -> 2 -> 3 -> 4 -> 5; | |
5 -> master [style=dotted]; | |
node[group=topic]; | |
2 -> 6 -> 7 -> 4; | |
7 -> topic [style=dotted]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment