Open davemcphee opened 4 months ago
Attributes
map of all VertexProperties share the same map
declared in the line of:
redVertexAttr = graph.VertexAttributes(map[string]string{"color": "red"})
This was a bug of the library, and I fixed it in PR https://github.com/dominikbraun/graph/pull/179, cc. @dominikbraun
Calling AddVertex() with VertexAttribute() functions will sometimes cache the last value on all vertices. I've been unable to reproduce this via your unit tests, but this shows the issue:
Each vertices' Attributes map contains the Attributes of the last created vertex. Am I creating these VertexProperties functions incorrectly, or mis-using them?