【问题标题】:Using Python for analyzing shapefiles with igraph使用 Python 通过 igraph 分析 shapefile
【发布时间】:2022-01-13 21:16:25
【问题描述】:

在分析 .shp 文件中的数据时,我有一些使用 networkX 的经验。我希望在执行最短路径分析并遇到 igraph 时优化速度。 Networkx 有/有read_shp("somefile.shp") 函数用于传入.shp 文件。 igraph 中是否有用于读取 .shp 文件和创建图形的类比?

【问题讨论】:

标签: python gis igraph shapefile


【解决方案1】:

不,没有(从 0.9.8 版开始),但您可以将 networkx 图转换为 igraph 格式,然后在其上使用 igraph 的快速分析方法。

https://igraph.org/python/api/latest/igraph.Graph.html#from_networkx

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-03-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-04-02
    • 1970-01-01
    • 2014-05-13
    • 2021-02-11
    相关资源
    最近更新 更多