parse_leda

parse_leda(lines)[source]

Read graph in LEDA format from string or iterable.

Parameters
linesstring or iterable

Data in LEDA format.

Returns
GNetworkX graph

References

1

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

Examples

G=nx.parse_leda(string)