mirror of
https://github.com/gonum/gonum.git
synced 2025-11-03 11:21:14 +08:00
graph/encoding/dot: fix NewNode use in tests and decoding
This commit is contained in:
@@ -103,6 +103,7 @@ func (gen *generator) node(dst Builder, id string) graph.Node {
|
||||
return n
|
||||
}
|
||||
n := dst.NewNode()
|
||||
dst.AddNode(n)
|
||||
if n, ok := n.(UnmarshalerID); ok {
|
||||
n.UnmarshalDOTID(id)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user