summaryrefslogtreecommitdiff
path: root/chain
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2023-07-21 19:14:51 +0800
committerJSDurand <mmemmew@gmail.com>2023-07-21 19:14:51 +0800
commit0bf1d3d9d883d0b63792c68541b23404aae0ec8f (patch)
treec45575c5eed6205d49dcb97017ae37027bd3fb9e /chain
parentffb6e689d28d295733b90f2b9e184205e33f19c2 (diff)
Print graphs with edges in order
* chain/src/item/default/mod.rs: * graph/src/labelled/binary.rs: * graph/src/labelled/double.rs: * graph/src/lib.rs: If we set the option "ordering" to be "out" in the declaration of nodes at the beginning, then GraphViz will not change the order of children out of nodes. This is much better looking in my opinion. * INSTALL: make insists in changing this file, so let it be.
Diffstat (limited to 'chain')
-rw-r--r--chain/src/item/default/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/chain/src/item/default/mod.rs b/chain/src/item/default/mod.rs
index 0dc613b..b84d4ea 100644
--- a/chain/src/item/default/mod.rs
+++ b/chain/src/item/default/mod.rs
@@ -1095,7 +1095,7 @@ impl DefaultForest<ForestLabel<GrammarLabel>> {
let preamble = "digraph nfa {
fontname=\"Helvetica,Arial,sans-serif\"
- node [fontname=\"Helvetica,Arial,sans-serif\"]
+ node [fontname=\"Helvetica,Arial,sans-serif\", ordering=out]
edge [fontname=\"Helvetica,Arial,sans-serif\"]
rankdir=LR;\n";