Mermaid Integration with NetworkX to enable topological information about the graphs #5190
Replies: 2 comments
-
Hi, @PurviChaurasia ! As it turns out (Googled it), there's MikeBergmann/graphml2mermaid@3468474 from @MikeBergmann. See his blog post https://blog.mdb977.de/rendering-networkx-graphs-or-graphml-files-via-mermaid/ |
Beta Was this translation helpful? Give feedback.
-
Sorry for the late reply @PurviChaurasia! As far as I'm aware, there's no official way to extract the nodes and edges from a given graph mermaid code. However, you can use some of Mermaid's internal functions for this. Just beware that it is very likely your code will break in future Mermaid releases if you use internal functions! There's a |
Beta Was this translation helpful? Give feedback.
-
Hi I was wondering if there is a way to extract the nodes and edges from a given graph mermaid script. I have been trying to use regular expression to do this, but have been unable to set a standard expression for this task. Is there an inbuilt function for this purpose?
On a side note, if there is a direct integration/workflow present as to how to convert a mermaid script to a networkX graph it would extremely helpful to get all necessary topological information about it. Please let me know as soon as possible. Thanks! @jgreywolf @aloisklink
Beta Was this translation helpful? Give feedback.
All reactions