pub fn write_dot_to_file(dot: &str, path: &str) -> Result<()>
将 DOT 字符串写入文件
dot
path
成功返回 Ok(()),失败返回 IO 错误