Skip to content

Instantly share code, notes, and snippets.

@dongyuwei
Created March 12, 2019 07:09
Show Gist options
  • Save dongyuwei/04e7ba890ab6db41c70195fcc831cde0 to your computer and use it in GitHub Desktop.
Save dongyuwei/04e7ba890ab6db41c70195fcc831cde0 to your computer and use it in GitHub Desktop.

install graphviz

brew install graphviz -v

write a .dot file

cat test.dot

graph {
    a -- b;
    b -- c;
    a -- c;
    d -- c;
    e -- c;
    e -- a;
}

generate svg from .dot file

dot -Tsvg test.dot -o outfile.svg

@dongyuwei
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment