My networkx graph has python objects as nodes. Is there a way to write the graph to any standard form? I tried to use the write_gexf, read_graphml, generate_graphml and other functions. However these do not seem to correctly load the graph.
--
You received this message because you are subscribed to the Google Groups "networkx-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to networkx-discu...@googlegroups.com.
To post to this group, send email to networkx...@googlegroups.com.
Visit this group at https://groups.google.com/group/networkx-discuss.
To view this discussion on the web visit https://groups.google.com/d/msgid/networkx-discuss/d67ebb9b-8b27-4c5c-813d-7574d445d42f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Actually, ;) all networkx graphs have python objects as nodes. :) (everything in python is an object)So, you need to find a format that supports the features of YOUR python objects.If you create anything python-dependent in your node objects, it is unlikely that these formats can write that information.You might consider relabeling your nodes to integers (https://networkx.github.io/documentation/stable/reference/relabel.html)and then storing that graph in a standard format. The node object information would need to be stored another way.
On Sat, Jun 29, 2019 at 9:27 AM Semanti Basu <renia...@gmail.com> wrote:
My networkx graph has python objects as nodes. Is there a way to write the graph to any standard form? I tried to use the write_gexf, read_graphml, generate_graphml and other functions. However these do not seem to correctly load the graph.--
You received this message because you are subscribed to the Google Groups "networkx-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to networkx...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to networkx-discu...@googlegroups.com.
To post to this group, send email to networkx...@googlegroups.com.
Visit this group at https://groups.google.com/group/networkx-discuss.
To view this discussion on the web visit https://groups.google.com/d/msgid/networkx-discuss/25f0aff3-704b-486d-98c9-c08df95ce0f0%40googlegroups.com.