summaryrefslogtreecommitdiffstats
path: root/02-graph-coloring/draw
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-08-06 08:15:45 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2013-08-06 08:15:45 +0200
commita2b0bb41876d956ca7abf123858ac45aea3c5898 (patch)
tree63dccf89aa4690c770196b6e49a974ca7837d3df /02-graph-coloring/draw
parentb14e17eaa3cf971800eec93ca2f1bc5582252a88 (diff)
downloadcoursera-descrete.zip
coursera-descrete.tar.gz
Discrete : wip-worktree-statedescrete
Diffstat (limited to '02-graph-coloring/draw')
-rwxr-xr-x02-graph-coloring/draw7
1 files changed, 7 insertions, 0 deletions
diff --git a/02-graph-coloring/draw b/02-graph-coloring/draw
new file mode 100755
index 0000000..656c60b
--- /dev/null
+++ b/02-graph-coloring/draw
@@ -0,0 +1,7 @@
+#! /bin/bash
+
+for data in ./data/*; do
+ echo "draw $data …"
+ cat $data | sed -e '1agraph G {' -e '1d; s/ / -- /; s/$/;/' -e '$a}' | dot -Tpng -o ${data}.png
+done
+