nxGraph object doesnt work with graph_to_mermaid()
Reproduction:
Output:
Solution: Write adapter for nx.Graph that takes in a networkX type and output a type that work with graph_to_mermaid().
Also make sure that it works both ways
e.g:
(nx.Graph -> mermaid -> nx.Graph)
(CustomGraph -> mermaid -> CustomGraph)
nxGraph object doesnt work with graph_to_mermaid() Reproduction: Output:
Solution: Write adapter for nx.Graph that takes in a networkX type and output a type that work with graph_to_mermaid(). Also make sure that it works both ways e.g: (nx.Graph -> mermaid -> nx.Graph) (CustomGraph -> mermaid -> CustomGraph)