graph/encoding/dot: Unmarshal does not know about graph-level DOT attribute blocks
Created by: kortschak
The DOT language definition allows graph, node and edge attribute statements, and the Marshal
function in dot allows these to be rendered into a .dot file from a graph that is aware of them (the Attributers
interface provides this hook). We should be able to read what we can write.
So we need something that can be hooked (it looks like *generator.addStmt
in the *ast.AttrStmt
type case is the right place). To simplify this, it's probably worth simplifying the Looked into it and it makes no real difference for additional code churn.Attributers
interface - I'll look into that part now.