diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2013-08-06 08:15:45 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2013-08-06 08:15:45 +0200 |
commit | a2b0bb41876d956ca7abf123858ac45aea3c5898 (patch) | |
tree | 63dccf89aa4690c770196b6e49a974ca7837d3df /02-graph-coloring/draw | |
parent | b14e17eaa3cf971800eec93ca2f1bc5582252a88 (diff) | |
download | coursera-descrete.zip coursera-descrete.tar.gz |
Discrete : wip-worktree-statedescrete
Diffstat (limited to '02-graph-coloring/draw')
-rwxr-xr-x | 02-graph-coloring/draw | 7 |
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 + |