summaryrefslogtreecommitdiff
path: root/day-8/script.ts
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2023-12-09 02:45:31 +0300
committereug-vs <eugene@eug-vs.xyz>2023-12-09 02:45:59 +0300
commit8a2061be6e795788fb5aa6b6ae93109c68af1358 (patch)
treec37708b71f387f5b043e298f77f03cbbe22b13d0 /day-8/script.ts
parentec85d11b49990cb8a2da6046553117b545130c48 (diff)
downloadaoc-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.ts5
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");