Skip to content

Instantly share code, notes, and snippets.

@JensRantil
Last active April 5, 2024 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JensRantil/c5241a23ab0f0e0a32105947584de9b9 to your computer and use it in GitHub Desktop.
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 is proof of concept how length of the labels in Graphviz impacts the layout.

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"];
}
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