rustworkx_to_networkx#
- iqm.qaoa.transpiler.rx_to_nx.rustworkx_to_networkx(graph)[source]#
Convert a
rustworkx
graph to anetworkx.Graph
.Doesn’t preserve node / edge weights or respect multigraphs.
- Parameters:
graph (PyGraph | PyDiGraph) – The graph to be converted.
- Returns:
The converted graph.
- Return type: