NetworkX

Previous topic

networkx.readwrite.leda.read_leda

Next topic

YAML

networkx.readwrite.leda.parse_leda

networkx.readwrite.leda.parse_leda(lines)

Read graph in LEDA format from string or iterable.

Parameters :

lines : string or iterable

Data in LEDA format.

Returns :

G : NetworkX graph

References

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

Examples

G=nx.parse_leda(string)