I am using the NetworkX python module to work with graphs and I'm happy with it so far.
However, I tried to write a graph to a file in LEDA format (more information here). The NetworkX documentation does not seem mention any function to do it (I only found how to read and parse LEDA formatted graphs). Is there a function to write graphs in LEDA format that I haven't seen?
I have created a code to write graph in leda format :