Skip to content

Instantly share code, notes, and snippets.

@taesiri
Created December 28, 2024 21:35
Show Gist options
  • Save taesiri/874243df50431170649aa05afc8fc609 to your computer and use it in GitHub Desktop.
Save taesiri/874243df50431170649aa05afc8fc609 to your computer and use it in GitHub Desktop.
digraph G {
// Graph settings
rankdir=LR;
node [shape=circle, fontname="Arial"];
edge [fontname="Arial", fontsize=10];
// Edges with weights
F -> E [label="12"];
D -> K [label="5"];
Y -> S [label="4"];
V -> P [label="6"];
X -> D [label="3"];
A -> T [label="1"];
E -> H [label="6"];
C -> G [label="12"];
P -> O [label="1"];
V -> F [label="3"];
K -> C [label="7"];
S -> V [label="14"];
I -> B [label="4"];
H -> N [label="3"];
Y -> C [label="5"];
L -> X [label="4"];
Q -> R [label="11"];
H -> J [label="9"];
W -> X [label="1"];
E -> I [label="11"];
J -> K [label="5"];
K -> M [label="9"];
Y -> G [label="2"];
F -> X [label="8"];
C -> J [label="3"];
E -> F [label="4"];
Q -> D [label="12"];
J -> V [label="14"];
A -> V [label="2"];
F -> A [label="7"];
J -> T [label="9"];
M -> L [label="3"];
P -> D [label="3"];
T -> X [label="1"];
L -> J [label="5"];
O -> X [label="11"];
M -> H [label="4"];
S -> M [label="8"];
// Node styling
node [style=filled, fillcolor=lightblue];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment