rustworkx
rustworkx copied to clipboard
Add network's `non_edges`
What is the expected enhancement?
It would be handy to have this method implemented in rustworkx: https://networkx.org/documentation/stable/reference/generated/networkx.classes.function.non_edges.html we could use it in https://github.com/Qiskit/qiskit-addon-opt-mapper/blob/main/qiskit_addon_opt_mapper/applications/tsp.py#L71-L84.
This should be trivial to implement with https://www.rustworkx.org/apiref/rustworkx.graph_complement.html
We can also leverage an optimized version