“Read_Ncol”退出,错误代码为-1073740791

时间:2017-11-01 17:05:06

标签: python igraph

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

1 个答案:

答案 0 :(得分:3)

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

你的例子适用于我,也适用于带有igraph 0.7.1的Python 3.5.3。

>>> 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意味着&#34;堆栈缓冲区溢出&#34;在Windows上,这可能意味着您的程序在堆栈上分配的空间之外写入(它与堆栈溢出according to this Microsoft Technet Blog不同。)

相关问题