Warning

This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see the current NetworkX documentation.

networkx.readwrite.leda.parse_leda

parse_leda(lines)[source]

Read graph in LEDA format from string or iterable.

Parameters:lines (string or iterable) – Data in LEDA format.
Returns:G
Return type:NetworkX graph

Examples

G=nx.parse_leda(string)

References

[1]http://www.algorithmic-solutions.info/leda_guide/graphs/leda_native_graph_fileformat.html