diff options
author | eug-vs <eugene@eug-vs.xyz> | 2023-12-09 02:45:31 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2023-12-09 02:45:59 +0300 |
commit | 8a2061be6e795788fb5aa6b6ae93109c68af1358 (patch) | |
tree | c37708b71f387f5b043e298f77f03cbbe22b13d0 /day-8/script.ts | |
parent | ec85d11b49990cb8a2da6046553117b545130c48 (diff) | |
download | aoc-2023-8a2061be6e795788fb5aa6b6ae93109c68af1358.tar.gz |
feat(day-8): differentiate R/L edges with color
Diffstat (limited to 'day-8/script.ts')
-rw-r--r-- | day-8/script.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/day-8/script.ts b/day-8/script.ts index d2869b9..7a72b71 100644 --- a/day-8/script.ts +++ b/day-8/script.ts @@ -68,6 +68,9 @@ terminalNodes.forEach((node) => { }); nodes.forEach((node) => { fs.appendFileSync(dotFile, ` ${node.name} -> ${nodes[node.left].name};\n`); - fs.appendFileSync(dotFile, ` ${node.name} -> ${nodes[node.right].name};\n`); + fs.appendFileSync( + dotFile, + ` ${node.name} -> ${nodes[node.right].name} [color=blue];\n`, + ); }); fs.appendFileSync(dotFile, "}\n"); |