Skip to content

Instantly share code, notes, and snippets.

@taesiri
Last active January 2, 2025 18:55
Show Gist options
  • Save taesiri/1a071bde56cff5abc0c33e3fd02b6121 to your computer and use it in GitHub Desktop.
Save taesiri/1a071bde56cff5abc0c33e3fd02b6121 to your computer and use it in GitHub Desktop.
digraph G {
// Graph settings
layout="dot";
rankdir="LR";
splines="curved";
nodesep=0.8;
ranksep=1.2;
overlap=false;
concentrate=true;
// Node settings
node [
shape=circle,
style="filled,solid",
fillcolor=white,
width=0.5,
height=0.5,
fixedsize=true
];
// Edge settings
edge [
arrowsize=0.6,
penwidth=1,
color="#666666",
fontcolor="#666666"
];
0 [label="0", fillcolor="#ffecb3"];
1 [label="1", fillcolor="#ffecb3"];
2 [label="2", fillcolor="#ffecb3"];
3 [label="3", fillcolor="#ffecb3"];
4 [label="4", fillcolor="#ffecb3"];
5 [label="5", fillcolor="#ffecb3"];
0 -> 1 [color="#ff9800", penwidth=2];
1 -> 5 [color="#ff9800", penwidth=2];
1 -> 4 [color="#ff9800", penwidth=2];
3 -> 2 [color="#ff9800", penwidth=2];
5 -> 1 [color="#ff9800", penwidth=2];
5 -> 0 [color="#ff9800", penwidth=2];
0 -> 3;
2 -> 3 [color="#ff9800", penwidth=2];
4 -> 0 [color="#ff9800", penwidth=2];
5 -> 2;
4 -> 3;
5 -> 4 [color="#ff9800", penwidth=2];
}
digraph G {
// Graph settings
layout="dot";
rankdir="LR";
splines="curved";
nodesep=0.8;
ranksep=1.2;
overlap=false;
concentrate=true;
// Node settings
node [
shape=circle,
style="filled,solid",
fillcolor=white,
width=0.5,
height=0.5,
fixedsize=true
];
// Edge settings
edge [
arrowsize=0.6,
penwidth=1,
color="#666666",
fontcolor="#666666"
];
0 [label="0"];
1 [label="1"];
2 [label="2"];
3 [label="3"];
4 [label="4"];
5 [label="5"];
0 -> 1;
1 -> 5;
1 -> 4;
3 -> 2;
5 -> 1;
5 -> 0;
0 -> 3;
2 -> 3;
4 -> 0;
5 -> 2;
4 -> 3;
5 -> 4;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment