huynd2210 / GraphToMermaid

Convert any graph-like data structures to mermaid code and vice versa.
1 stars 0 forks source link

Issue: NetworkX graph doesnt work with graph_to_mermaid() #13

Open huynd2210 opened 1 month ago

huynd2210 commented 1 month ago

nxGraph object doesnt work with graph_to_mermaid() Reproduction: image Output: image

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)