Nodes and edges should be sets, not lists. Related: https://github.com/dwavesystems/dwave-pytorch-plugin/issues/30