Add `from_dot` to create rustworkx graphs from dot files
What is the expected enhancement?
Follow up of #840 (related: #1091, #1464)
We have to_dot methods in both PyGraph and PyDiGraph.
Ideally, we would also like to have a rustworkx.from_dot to read those files and reconstruct a graph
Also, please check https://crates.io/crates/dot-parser for its old petgraph feature. It is tied to an old version of petgraph but it could be used as a reference implementation.
dot-parser has an incompatible. However, we could use the grammar from Pydot (https://github.com/pydot/pydot) with Pest ( https://docs.rs/pest/latest/pest/) maybe?
https://crates.io/crates/graphviz-rust is another option that we could use for a reference.
Hey @IvanIsCoding, could you take a look? PR