mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-29 10:21:01 -06:00
f8fdb6de3f
When creating a Set of BasicEdges, the Hashcode function is used to determine map keys for the underlying set data structure. The string hex representation of the two vertices' pointers is unsafe to use as a map key, since these addresses may change between the time they are added to the set and the time the set is operated on. Instead we modify the Hashcode function to maintain the references to the underlying vertices so they cannot be garbage collected during the lifetime of the Set. |
||
---|---|---|
.. | ||
dag_test.go | ||
dag.go | ||
dot_test.go | ||
dot.go | ||
edge_test.go | ||
edge.go | ||
graph_test.go | ||
graph.go | ||
marshal_test.go | ||
marshal.go | ||
set_test.go | ||
set.go | ||
tarjan_test.go | ||
tarjan.go | ||
walk_test.go | ||
walk.go |