Skip to main content
Ctrl+K
NetworkX 3.5.1rc0.dev0 documentation - Home NetworkX 3.5.1rc0.dev0 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
  • Reading and writing graphs
  • LEDA

LEDA#

Read graphs in LEDA format.

LEDA is a C++ class library for efficient data types and algorithms.

Format#

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

read_leda(path[, encoding])

Read graph in LEDA format from path.

parse_leda(lines)

Read graph in LEDA format from string or iterable.

On this page
  • Format

© Copyright 2004-2025, NetworkX Developers.

Created using Sphinx 8.2.3.

Built with the PyData Sphinx Theme 0.16.1.