Skip to main content
Ctrl+K
NetworkX 3.4rc0.dev0 documentation - Home NetworkX 3.4rc0.dev0 documentation - Home
  • 安装
  • 教程
  • Reference
  • Gallery
  • Developer
  • 发布版本
  • Guides
  • Home Page
  • GitHub
  • 安装
  • 教程
  • Reference
  • Gallery
  • Developer
  • 发布版本
  • Guides
  • Home Page
  • GitHub

Section Navigation

  • 引言
  • 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
  • 随机性
  • Exceptions
  • Utilities
  • 后端和配置
  • 术语表
  • Reference
  • LEDA
  • read_leda

read_leda#

read_leda(path, encoding='UTF-8')[source]#

读取LEDA格式图文件的路径。

Parameters:
path文件或字符串

要读取的文件或文件名。以.gz或.bz2结尾的文件名将被解压缩。

Returns:
GNetworkX图

References

[1]

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

Examples

G=nx.read_leda(‘file.leda’)

On this page
  • read_leda()

© Copyright 2004-2024, NetworkX Developers.

Created using Sphinx 7.4.7.

Built with the PyData Sphinx Theme 0.15.4.