"Read_Ncol" 退出,错误代码为 -1073740791

"Read_Ncol" exit with error code -1073740791

我正在使用 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

Read_Ncol function reads files in NCOL format, as produced by the 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 上的 "Stack Buffer Overrun",这可能意味着您的程序在堆栈上分配的 space 之外写入(它不同于堆栈溢出, according to this Microsoft Technet Blog.)