We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f776627 commit 7928c25Copy full SHA for 7928c25
1 file changed
src/pyirk/visualization.py
@@ -535,8 +535,10 @@ def get_node_color(node):
535
else:
536
return "black"
537
538
- if len(G.edges) < 4:
+ if len(G.edges) <= 2:
539
layout = "dot"
540
+ elif len(G.edges) <= 8:
541
+ layout = "fdp"
542
543
layout = "sfdp"
544
@@ -579,6 +581,7 @@ def get_node_color(node):
579
581
"arrowType": "normal",
580
582
"penwidth": 2,
583
"minlen": 1, # note: this only applies to dot layout
584
+ "len": 1, # note: this only applies to dot fdp layout
585
# label
586
"label": d["edge"].short_key,
587
"fontsize": FONTSIZE,
0 commit comments