Skip to main content
This page is documentation for a DEVELOPMENT / PRE-RELEASE version. Switch to stable version
Ctrl+K

NetworkX User Survey 2023 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!

Logo image

Site Navigation

  • Install
  • Tutorial
  • Reference
  • Gallery
  • Developer
  • Releases
  • Guides
    • devel (latest)
    • current (stable)

Site Navigation

  • Install
  • Tutorial
  • Reference
  • Gallery
  • Developer
  • Releases
  • Guides
    • devel (latest)
    • current (stable)

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
    • Edge List
    • GEXF
    • GML
    • GraphML
    • JSON
    • LEDA
    • SparseGraph6
    • Pajek
    • Matrix Market
    • Network Text
  • Drawing
  • Randomness
  • Exceptions
  • Utilities
  • 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)

Ctrl+K
On this page
  • parse_leda()

© Copyright 2004-2023, NetworkX Developers.

Created using Sphinx 6.1.3.

Built with the PyData Sphinx Theme 0.13.3.