certain edge-creating syntax causes ordering attribute to fail
Steps to reproduce
digraph {
// fails
subgraph cluster1 {
ordering=out
A0 b0 c0 d0 e0 f0 g0
A0 -> { d0 f0 e0 g0 c0 b0 } // wrong ordering if nodes already defined
}
label= "expected
d0 f0 e0 g0 c0 b0"
}
Expected Behavior
Nodes in this order: d0 f0 e0 g0 c0 b0
Actual Behavior
OS Version
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.6 LTS
Release: 20.04
Codename: focal
Graphviz Version
dot - graphviz version 10.0.0~dev.20231204.0707 (20231204.0707)
Additional info
dot -Tcanon
shows that the edges are defined based on the order the nodes were defined, not based on the A0 -> { d0 f0 e0 g0 c0 b0 }
statement.
The ordering attribute represents a powerful and complex concept, but it needs to be cleaned up.