Skip to content

Instantly share code, notes, and snippets.

@steveroush
Created February 6, 2026 00:32
Show Gist options
  • Select an option

  • Save steveroush/126c3b4bc5870e427bffd2f74d70489c to your computer and use it in GitHub Desktop.

Select an option

Save steveroush/126c3b4bc5870e427bffd2f74d70489c to your computer and use it in GitHub Desktop.
Graphviz / dot init_rank test: init_rank_20.gv
/*********************************************************************
as of version <<dot - graphviz version 14.1.3~dev.20260124.0732 (20260124.0732)>>
this file: init_rank_20.gv
triggers the 'trouble in init_rank' bug
(see https://gitlab.com/graphviz/graphviz/-/issues/1213)
***********************************************************************/
/***********************************************************************
gvstats.gvpr output:
file: init_rank_20.gv
nodes: 59
edges: 187
clusters: 43
connected graphs: 1
HTML labels: 0
record nodes: 0
(degree is the count of edges connecting to a node)
degree: 1 node count: 1
degree: 2 node count: 1
degree: 3 node count: 1
degree: 4 node count: 8
degree: 5 node count: 10
degree: 6 node count: 9
degree: 7 node count: 6
degree: 8 node count: 9
degree: 9 node count: 8
degree: 10 node count: 3
degree: 13 node count: 1
degree: 14 node count: 1
degree: 41 node count: 1
("concentrate=true" and/or coloring edges may help nodes with large degrees)
***********************************************************************/
digraph anonymous {
graph [rankdir=LR];
subgraph cluster__1 {
graph [rankdir=LR];
"n.1" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__2 {
graph [rankdir=LR];
"n.2" [height=0.5,
shape=ellipse,
width=0.5];
"n.3" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__3 {
graph [rankdir=LR];
"n.4" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__4 {
graph [rankdir=LR];
"n.5" [height=0.5,
shape=ellipse,
width=0.5];
"n.6" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__5 {
graph [rankdir=LR];
"n.7" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__6 {
graph [rankdir=LR];
"n.8" [height=0.5,
shape=ellipse,
width=0.5];
"n.9" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__7 {
graph [rankdir=LR];
"n.10" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__8 {
graph [rankdir=LR];
"n.11" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__9 {
graph [rankdir=LR];
"n.12" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__10 {
graph [rankdir=LR];
"n.13" [height=0.5,
shape=ellipse,
width=0.5];
"n.14" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__11 {
graph [rankdir=LR];
"n.15" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__12 {
graph [rankdir=LR];
"n.16" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__13 {
graph [rankdir=LR];
"n.17" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__14 {
graph [rankdir=LR];
"n.18" [height=0.5,
shape=ellipse,
width=0.5];
"n.19" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__15 {
graph [rankdir=LR];
"n.20" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__16 {
graph [rankdir=LR];
"n.21" [height=0.5,
shape=ellipse,
width=0.5];
"n.22" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__17 {
graph [rankdir=LR];
"n.23" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__18 {
graph [rankdir=LR];
"n.24" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__19 {
graph [rankdir=LR];
"n.25" [height=0.5,
shape=ellipse,
width=0.5];
"n.26" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__20 {
graph [rankdir=LR];
"n.27" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__21 {
graph [rankdir=LR];
"n.28" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__22 {
graph [rankdir=LR];
"n.29" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__23 {
graph [rankdir=LR];
"n.30" [height=0.5,
shape=ellipse,
width=0.5];
"n.31" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__24 {
graph [rankdir=LR];
"n.32" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__25 {
graph [rankdir=LR];
"n.33" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__26 {
graph [rankdir=LR];
"n.34" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__27 {
graph [rankdir=LR];
"n.35" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__28 {
graph [rankdir=LR];
"n.36" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__29 {
graph [rankdir=LR];
"n.37" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__30 {
graph [rankdir=LR];
"n.38" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__31 {
graph [rankdir=LR];
"n.39" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__32 {
graph [rankdir=LR];
"n.40" [height=0.5,
shape=ellipse,
width=0.5];
"n.41" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__33 {
graph [rankdir=LR];
"n.42" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__34 {
graph [rankdir=LR];
"n.43" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__35 {
graph [rankdir=LR];
"n.44" [height=0.5,
shape=ellipse,
width=0.5];
"n.45" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__36 {
graph [rankdir=LR];
"n.46" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__37 {
graph [rankdir=LR];
"n.47" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__38 {
graph [rankdir=LR];
"n.48" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__39 {
graph [rankdir=LR];
"n.49" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__40 {
graph [rankdir=LR];
"n.50" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__41 {
graph [rankdir=LR];
"n.51" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__42 {
graph [rankdir=LR];
"n.52" [height=0.5,
shape=ellipse,
width=0.5];
"n.53" [height=0.5,
shape=ellipse,
width=0.5];
"n.54" [height=0.5,
shape=ellipse,
width=0.5];
"n.55" [height=0.5,
shape=ellipse,
width=0.5];
"n.56" [height=0.5,
shape=ellipse,
width=0.5];
"n.57" [height=0.5,
shape=ellipse,
width=0.5];
}
subgraph cluster__43 {
graph [rankdir=LR];
"n.58" [height=0.5,
shape=ellipse,
width=0.5];
}
"n.2" -> "n.1" [label=Edg1];
"n.2" -> "n.2" [label=Edg2];
"n.2" -> "n.3" [label=Edg3];
"n.3" -> "n.1" [label=Edg4];
"n.3" -> "n.2" [label=Edg5];
"n.3" -> "n.3" [label=Edg6];
"n.4" -> "n.1" [label=Edg7];
"n.4" -> "n.2" [label=Edg8];
"n.4" -> "n.3" [label=Edg9];
"n.5" -> "n.2" [label=Edg10];
"n.5" -> "n.4" [label=Edg11];
"n.5" -> "n.5" [label=Edg12];
"n.5" -> "n.6" [label=Edg13];
"n.6" -> "n.2" [label=Edg14];
"n.6" -> "n.4" [label=Edg15];
"n.6" -> "n.5" [label=Edg16];
"n.6" -> "n.6" [label=Edg17];
"n.7" -> "n.7" [label=Edg18];
"n.8" -> "n.1" [label=Edg19];
"n.8" -> "n.7" [label=Edg20];
"n.8" -> "n.8" [label=Edg21];
"n.8" -> "n.9" [label=Edg22];
"n.9" -> "n.1" [label=Edg23];
"n.9" -> "n.7" [label=Edg24];
"n.9" -> "n.8" [label=Edg25];
"n.9" -> "n.9" [label=Edg26];
"n.10" -> "n.4" [label=Edg27];
"n.10" -> "n.5" [label=Edg28];
"n.10" -> "n.7" [label=Edg29];
"n.10" -> "n.8" [label=Edg30];
"n.10" -> "n.10" [label=Edg31];
"n.11" -> "n.4" [label=Edg32];
"n.11" -> "n.5" [label=Edg33];
"n.11" -> "n.8" [label=Edg34];
"n.11" -> "n.10" [label=Edg35];
"n.13" -> "n.1" [label=Edg36];
"n.13" -> "n.12" [label=Edg37];
"n.13" -> "n.13" [label=Edg38];
"n.13" -> "n.14" [label=Edg39];
"n.14" -> "n.1" [label=Edg40];
"n.14" -> "n.12" [label=Edg41];
"n.14" -> "n.13" [label=Edg42];
"n.14" -> "n.14" [label=Edg43];
"n.15" -> "n.1" [label=Edg44];
"n.15" -> "n.12" [label=Edg45];
"n.15" -> "n.15" [label=Edg46];
"n.17" -> "n.1" [label=Edg47];
"n.17" -> "n.13" [label=Edg48];
"n.17" -> "n.16" [label=Edg49];
"n.18" -> "n.1" [label=Edg50];
"n.18" -> "n.19" [label=Edg51];
"n.19" -> "n.1" [label=Edg52];
"n.19" -> "n.18" [label=Edg53];
"n.19" -> "n.19" [label=Edg54];
"n.20" -> "n.18" [label=Edg55];
"n.20" -> "n.19" [label=Edg56];
"n.21" -> "n.18" [label=Edg57];
"n.21" -> "n.20" [label=Edg58];
"n.21" -> "n.21" [label=Edg59];
"n.21" -> "n.22" [label=Edg60];
"n.22" -> "n.1" [label=Edg61];
"n.22" -> "n.18" [label=Edg62];
"n.22" -> "n.21" [label=Edg63];
"n.22" -> "n.22" [label=Edg64];
"n.23" -> "n.1" [label=Edg65];
"n.23" -> "n.12" [label=Edg66];
"n.23" -> "n.14" [label=Edg67];
"n.23" -> "n.20" [label=Edg68];
"n.23" -> "n.21" [label=Edg69];
"n.23" -> "n.23" [label=Edg70];
"n.24" -> "n.4" [label=Edg71];
"n.24" -> "n.16" [label=Edg72];
"n.24" -> "n.21" [label=Edg73];
"n.24" -> "n.23" [label=Edg74];
"n.25" -> "n.1" [label=Edg75];
"n.25" -> "n.25" [label=Edg76];
"n.25" -> "n.26" [label=Edg77];
"n.26" -> "n.1" [label=Edg78];
"n.26" -> "n.25" [label=Edg79];
"n.26" -> "n.26" [label=Edg80];
"n.27" -> "n.1" [label=Edg81];
"n.27" -> "n.25" [label=Edg82];
"n.27" -> "n.27" [label=Edg83];
"n.28" -> "n.1" [label=Edg84];
"n.28" -> "n.25" [label=Edg85];
"n.28" -> "n.27" [label=Edg86];
"n.29" -> "n.1" [label=Edg87];
"n.29" -> "n.12" [label=Edg88];
"n.29" -> "n.13" [label=Edg89];
"n.29" -> "n.29" [label=Edg90];
"n.30" -> "n.1" [label=Edg91];
"n.30" -> "n.12" [label=Edg92];
"n.30" -> "n.30" [label=Edg93];
"n.30" -> "n.31" [label=Edg94];
"n.31" -> "n.1" [label=Edg95];
"n.31" -> "n.12" [label=Edg96];
"n.31" -> "n.30" [label=Edg97];
"n.31" -> "n.31" [label=Edg98];
"n.32" -> "n.1" [label=Edg99];
"n.32" -> "n.12" [label=Edg100];
"n.32" -> "n.30" [label=Edg101];
"n.32" -> "n.32" [label=Edg102];
"n.33" -> "n.1" [label=Edg103];
"n.33" -> "n.21" [label=Edg104];
"n.33" -> "n.23" [label=Edg105];
"n.33" -> "n.29" [label=Edg106];
"n.33" -> "n.30" [label=Edg107];
"n.33" -> "n.32" [label=Edg108];
"n.34" -> "n.1" [label=Edg109];
"n.34" -> "n.13" [label=Edg110];
"n.34" -> "n.29" [label=Edg111];
"n.34" -> "n.30" [label=Edg112];
"n.34" -> "n.31" [label=Edg113];
"n.35" -> "n.1" [label=Edg114];
"n.35" -> "n.12" [label=Edg115];
"n.35" -> "n.14" [label=Edg116];
"n.35" -> "n.20" [label=Edg117];
"n.35" -> "n.21" [label=Edg118];
"n.35" -> "n.35" [label=Edg119];
"n.36" -> "n.1" [label=Edg120];
"n.36" -> "n.4" [label=Edg121];
"n.36" -> "n.21" [label=Edg122];
"n.36" -> "n.29" [label=Edg123];
"n.36" -> "n.30" [label=Edg124];
"n.36" -> "n.32" [label=Edg125];
"n.36" -> "n.35" [label=Edg126];
"n.37" -> "n.1" [label=Edg127];
"n.37" -> "n.30" [label=Edg128];
"n.37" -> "n.31" [label=Edg129];
"n.37" -> "n.32" [label=Edg130];
"n.38" -> "n.1" [label=Edg131];
"n.38" -> "n.30" [label=Edg132];
"n.38" -> "n.31" [label=Edg133];
"n.39" -> "n.1" [label=Edg134];
"n.39" -> "n.30" [label=Edg135];
"n.39" -> "n.32" [label=Edg136];
"n.40" -> "n.1" [label=Edg137];
"n.40" -> "n.37" [label=Edg138];
"n.40" -> "n.38" [label=Edg139];
"n.40" -> "n.40" [label=Edg140];
"n.40" -> "n.41" [label=Edg141];
"n.41" -> "n.1" [label=Edg142];
"n.41" -> "n.39" [label=Edg143];
"n.42" -> "n.1" [label=Edg144];
"n.42" -> "n.8" [label=Edg145];
"n.42" -> "n.9" [label=Edg146];
"n.43" -> "n.1" [label=Edg147];
"n.43" -> "n.11" [label=Edg148];
"n.43" -> "n.34" [label=Edg149];
"n.43" -> "n.36" [label=Edg150];
"n.43" -> "n.40" [label=Edg151];
"n.43" -> "n.41" [label=Edg152];
"n.43" -> "n.42" [label=Edg153];
"n.44" -> "n.1" [label=Edg154];
"n.44" -> "n.44" [label=Edg155];
"n.44" -> "n.45" [label=Edg156];
"n.45" -> "n.1" [label=Edg157];
"n.45" -> "n.44" [label=Edg158];
"n.45" -> "n.45" [label=Edg159];
"n.46" -> "n.1" [label=Edg160];
"n.46" -> "n.44" [label=Edg161];
"n.47" -> "n.21" [label=Edg162];
"n.48" -> "n.1" [label=Edg163];
"n.48" -> "n.4" [label=Edg164];
"n.48" -> "n.21" [label=Edg165];
"n.48" -> "n.46" [label=Edg166];
"n.48" -> "n.47" [label=Edg167];
"n.49" -> "n.1" [label=Edg168];
"n.49" -> "n.11" [label=Edg169];
"n.49" -> "n.42" [label=Edg170];
"n.49" -> "n.46" [label=Edg171];
"n.49" -> "n.48" [label=Edg172];
"n.50" -> "n.1" [label=Edg173];
"n.50" -> "n.25" [label=Edg174];
"n.50" -> "n.26" [label=Edg175];
"n.51" -> "n.1" [label=Edg176];
"n.51" -> "n.21" [label=Edg177];
"n.51" -> "n.46" [label=Edg178];
"n.51" -> "n.47" [label=Edg179];
"n.52" -> "n.28" [label=Edg180];
"n.52" -> "n.33" [label=Edg181];
"n.52" -> "n.34" [label=Edg182];
"n.52" -> "n.43" [label=Edg183];
"n.52" -> "n.50" [label=Edg184];
"n.52" -> "n.53" [label=Edg185];
"n.52" -> "n.54" [label=Edg186];
"n.52" -> "n.56" [label=Edg187];
"n.53" -> "n.28" [label=Edg188];
"n.54" -> "n.11" [label=Edg189];
"n.55" -> "n.11" [label=Edg190];
"n.55" -> "n.34" [label=Edg191];
"n.55" -> "n.36" [label=Edg192];
"n.55" -> "n.42" [label=Edg193];
"n.55" -> "n.43" [label=Edg194];
"n.55" -> "n.52" [label=Edg195];
"n.55" -> "n.56" [label=Edg196];
"n.56" -> "n.1" [label=Edg197];
"n.56" -> "n.38" [label=Edg198];
"n.56" -> "n.39" [label=Edg199];
"n.56" -> "n.43" [label=Edg200];
"n.56" -> "n.53" [label=Edg201];
"n.56" -> "n.54" [label=Edg202];
"n.57" -> "n.1" [label=Edg203];
"n.57" -> "n.49" [label=Edg204];
"n.57" -> "n.53" [label=Edg205];
"n.57" -> "n.54" [label=Edg206];
"n.58" -> "n.11" [label=Edg207];
"n.58" -> "n.17" [label=Edg208];
"n.58" -> "n.24" [label=Edg209];
"n.58" -> "n.42" [label=Edg210];
"n.58" -> "n.52" [label=Edg211];
"n.58" -> "n.55" [label=Edg212];
"n.59" [height=0.5,
shape=ellipse,
style=invis,
width=0];
"n.59" -> "n.58" [label=Edg213];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment