Skip to main content
Ctrl+K
NetworkX 3.4.2 documentation - Home
  • Install
  • Tutorial
  • Backends
  • Reference
  • Gallery
  • Developer
  • Releases
    • Guides
  • Home Page
  • GitHub
  • Install
  • Tutorial
  • Backends
  • Reference
  • Gallery
  • Developer
  • Releases
  • Guides
  • Home Page
  • GitHub

Section Navigation

  • Introduction
  • Graph types
  • Algorithms
  • Functions
  • Graph generators
  • Linear algebra
  • Converting to and from other data formats
  • Relabeling nodes
  • Reading and writing graphs
    • Adjacency List
    • Multiline Adjacency List
    • DOT
    • Edge List
    • GEXF
    • GML
    • GraphML
    • JSON
    • LEDA
    • SparseGraph6
    • Pajek
    • Matrix Market
    • Network Text
  • Drawing
  • Randomness
  • Exceptions
  • Utilities
  • Backends
  • Configs
  • Glossary
  • Reference
  • LEDA
  • parse_leda

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)

On this page
  • parse_leda()

© Copyright 2004-2024, NetworkX Developers.

Created using Sphinx 8.1.3.

Built with the PyData Sphinx Theme 0.15.4.