Qiskit / rustworkx

A high performance Python graph library implemented in Rust.
https://www.rustworkx.org
Apache License 2.0
1.05k stars 145 forks source link

Add reverse direction serialization #840

Open mtreinish opened 1 year ago

mtreinish commented 1 year ago

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 commented 1 year ago

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

AngeloDanducci commented 1 year ago

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

mtreinish commented 1 year ago

Sure thing, I've assigned you to this issue

AngeloDanducci commented 1 year ago

Had some other priorities pop up, returning this now 👍

mtreinish commented 11 months ago

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