# Graphviz functions dot-to-png () { if [[ -n "${1+x}" ]]; then dot -Tpng $1 -o ${1%.*}.png else echo 'Usage: dot-to-png ' fi } neat-to-png () { if [[ -n "${1+x}" ]]; then neato -Tpng $1 -o ${1%.*}.png else echo 'Usage: neat-to-png ' fi } seqdiag-to-png () { if [[ -n "${1+x}" ]]; then seqdiag -o ${1%.*}.png -f /System/Library/Fonts/SFNSText.ttf $1 else echo 'Usage: seqdiag-to-png ' fi }