【问题标题】:"Read_Ncol" exit with error code -1073740791“Read_Ncol”退出,错误代码为 -1073740791
【发布时间】:2017-11-01 17:05:05
【问题描述】:

我正在使用 python 3.5.3 和 igraph 0.7.1。

为什么以下代码以"Process finished with exit code -1073740791 (0xC0000409)" 错误消息结束。

from igraph import Graph

g = Graph.Read_Ncol('test.csv', directed=False)

test.csv

119 205
119 625
124 133
124 764
124 813
55 86
55 205
55 598
133 764

【问题讨论】:

    标签: python igraph


    【解决方案1】:

    Read_Ncol 函数读取 NCOL 格式的文件,由 Large Graph Layout 程序生成。

    你的例子对我来说很好,在 Python 3.5.3 和 igraph 0.7.1 上也是如此。

    >>> g = Graph.Read_Ncol('test.csv', directed=False)
    >>> g
    <igraph.Graph object at 0x10c4844f8>
    >>> print(g)
    IGRAPH UN-- 10 9 --
    + attr: name (v)
    + edges (vertex names):
    119--205, 119--625, 124--133, 124--764, 124--813, 55--86, 205--55, 55--598,
    133--764
    

    似乎错误 C0000409 在 Windows 上意味着“堆栈缓冲区溢出”,这可能意味着您的程序正在堆栈上分配的空间之外写入(它与堆栈溢出不同,according to this Microsoft Technet Blog。)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-07-02
      • 2017-11-20
      • 2018-11-06
      • 1970-01-01
      • 2023-02-01
      • 1970-01-01
      • 1970-01-01
      • 2021-12-04
      相关资源
      最近更新 更多