2012-06-28 23:09:40 -07:00
|
|
|
BEGIN {
|
|
|
|
FS = "[{}]"
|
|
|
|
print "strict digraph G {"
|
|
|
|
}
|
|
|
|
|
|
|
|
{
|
|
|
|
first = 0
|
|
|
|
for (i = 1; i <= NF; i++) {
|
|
|
|
if ($i != "") {
|
|
|
|
if (!first) {
|
|
|
|
printf("\"%s\"", $i);
|
|
|
|
first = 1;
|
|
|
|
} else {
|
2012-07-01 04:38:41 -07:00
|
|
|
printf(" -> \"%s\"", $i);
|
2012-06-28 23:09:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
printf("\n");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
END {
|
|
|
|
print "}"
|
|
|
|
}
|