This is proof of concept how length of the labels in Graphviz impacts the layout.
Last active
April 5, 2024 11:47
-
-
Save JensRantil/c5241a23ab0f0e0a32105947584de9b9 to your computer and use it in GitHub Desktop.
This is proof of concept how length of the labels in Graphviz impacts the layout.
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 { | |
// Define nodes | |
A [label="Node A"]; | |
B [label="Node B"]; | |
C [label="Node C"]; | |
D [label="Node D"]; | |
// Define edges with labels | |
A -> B [label="Edge from A to B with a fairly long label"]; | |
B -> C [label="Short label"]; | |
C -> D [label="Another edge, from C to D, with a fairly long label"]; | |
D -> A [label="Looping back"]; | |
} |
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 { | |
// Define nodes | |
A [label="Node A"]; | |
B [label="Node B"]; | |
C [label="Node C"]; | |
D [label="Node D"]; | |
// Define edges with labels | |
A -> B [label="Edge from A"]; | |
B -> C [label="Short label"]; | |
C -> D [label="Another edge"]; | |
D -> A [label="Looping back"]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment