Fix hashability for graph.Value