rustworkx icon indicating copy to clipboard operation
rustworkx copied to clipboard

Add reverse direction serialization

Open mtreinish opened this issue 1 year ago • 5 comments

What is the expected enhancement?

Right now rustworkx has a json node link serializer (https://qiskit.org/documentation/rustworkx/apiref/rustworkx.node_link_json.html#rustworkx.node_link_json) and a graphml deserializer (https://qiskit.org/documentation/rustworkx/apiref/rustworkx.read_graphml.html#rustworkx.read_graphml) but no reverse path functions. We should add a node link json deserializer (to read node link json into a graph object) and a graphml serializer (to generate a graphml payload from a graph object) so that you can round-trip a graph over a serialization format.

mtreinish avatar Mar 20 '23 11:03 mtreinish

Also the dot file from graph.to_dot() we should have a from_dot() too https://qiskit.org/documentation/retworkx/dev/apiref/rustworkx.PyGraph.to_dot.html

mtreinish avatar May 22 '23 14:05 mtreinish

Feel free to assign this to me @mtreinish have some work in progress on this.

AngeloDanducci avatar May 25 '23 06:05 AngeloDanducci

Sure thing, I've assigned you to this issue

mtreinish avatar May 26 '23 21:05 mtreinish

Had some other priorities pop up, returning this now 👍

AngeloDanducci avatar Jul 17 '23 14:07 AngeloDanducci

Hey, @AngeloDanducci I was wondering how this was going and if you needed any help.

mtreinish avatar Sep 27 '23 19:09 mtreinish