Skip to content

Instantly share code, notes, and snippets.

@powerman
Last active October 2, 2020 13:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save powerman/687f047b2bfd3a64d53ca79787c3edc0 to your computer and use it in GitHub Desktop.
Save powerman/687f047b2bfd3a64d53ca79787c3edc0 to your computer and use it in GitHub Desktop.
Gist+Graphviz example

Alt text

#CUT
digraph G {
    aize ="4,4";
    main [shape=box];
    main -> parse [weight=8];
    parse -> execute;
    main -> init [style=dotted];
    main -> cleanup;
    execute -> { make_string; printf}
    init -> make_string;
    edge [color=red];
    main -> printf [style=bold,label="100 times"];
    make_string [label="make a string"];
    node [shape=box,style=filled,color=".7 .3 1.0"];
    execute -> compare;
}
#CUT
@powerman
Copy link
Author

powerman commented Aug 9, 2017

Because of TLmaK0/gravizo#39 on each change of graph source we should also change image url.
We can either include git revision in url, or just rename document both in gist title and url.

To have more than one graph in same markdown document we should use unique #CUTxxx marks around graphs and in their urls.

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