Cleanup and idiomaticize rule/expression dot graph output.