In graphviz, the format of the file (whether the first line is digraph or graph) determines whether -> or -- arrows are allowed, and whether dir will default to none or normal.
This is neat but
- we normally deal with json, which makes no such distinction
- currently we don't have any graph-level attributes in json (although maybe we will someday)
- graphlib-dot supplies
isDirected but we throw it out since we pretend graphviz is a special case of json (!)
I dunno, maybe this is misguided, but the proposal is that maybe directedness is a property of the layout algorithm, and we could default dir by reading a flag on the algorithm?
Anyway, right now simple-viewer gives inconsistent results depending whether you start in graphviz mode or not, and something should be done!
In graphviz, the format of the file (whether the first line is
digraphorgraph) determines whether->or--arrows are allowed, and whether dir will default tononeornormal.This is neat but
isDirectedbut we throw it out since we pretend graphviz is a special case of json (!)I dunno, maybe this is misguided, but the proposal is that maybe directedness is a property of the layout algorithm, and we could default
dirby reading a flag on the algorithm?Anyway, right now simple-viewer gives inconsistent results depending whether you start in graphviz mode or not, and something should be done!