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
  • parse_leda

parse_leda#

parse_leda(lines)[source]#

从字符串或可迭代对象中读取LEDA格式的图。

Parameters:
lines字符串或可迭代对象

以LEDA格式表示的数据。

Returns:
GNetworkX图

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 7.4.7.

Built with the PyData Sphinx Theme 0.15.4.