See: https://github.com/jbohren/xdot/commit/c8c349d47efb28a50668aaa7cd66eb28bfab46e6#commitcomment-3544226