diff --git a/graph/encoding/dot/decode.go b/graph/encoding/dot/decode.go index cec5d612..05263b02 100644 --- a/graph/encoding/dot/decode.go +++ b/graph/encoding/dot/decode.go @@ -153,10 +153,10 @@ func (gen *generator) node(dst graph.NodeAdder, id string) graph.Node { return n } n := dst.NewNode() - dst.AddNode(n) if n, ok := n.(DOTIDSetter); ok { n.SetDOTID(id) } + dst.AddNode(n) gen.ids[id] = n // Check if within the context of a subgraph, that is to be used as a vertex // of an edge.