|
|
|
|
|
by tartrate
2533 days ago
|
|
TBH I think the Argdown source is much more readable than this I found from one of your links: /* Example */
digraph {
/* Note: HTML labels do not work in IE, which lacks support for <foreignObject> tags. */
node [rx=5 ry=5 labelStyle="font: 300 14px 'Helvetica Neue', Helvetica"]
edge [labelStyle="font: 300 14px 'Helvetica Neue', Helvetica"]
A [labelType="html"
label="A <span style='font- size:32px'>Big</span> <span style='color:red;'>HTML</span> Source!"];
C;
E [label="Bold Red Sink" style="fill: #f77; font- weight: bold"];
A -> B -> C;
B -> D [label="A blue label" labelStyle="fill: #55f; font-weight: bold;"];
D -> E [label="A thick red edge" style="stroke: #f77; stroke-width: 2px;" arrowheadStyle="fill: #f77"];
C -> E;
A -> D [labelType="html" label="A multi-rank <span style='color:blue;'>HTML</span> edge!"];
}
|
|
I was just disagreeing with the notion that Argdown is useful in the general case, where I find that graphviz .dot format is already closer to what I would want a general graph-layout markup language to look like (despite being far-from-perfect). It's less optimized for the verbose case, but it starts pretty minimal and can be extended without too much pain in whatever direction is best.
[0] http://viz-js.com
[1] https://multimessenger.science/llama.pipeline.html