METIS-input file format error

第一种报错:
n the first line of the file, you specified that the graph contained
63 edges. However, I only found 51 edges in the file.
Please specify the correct number of edges in the first line of the file.
原因分析:
The numbering of the vertices starts from 1 and not from 0.
个人认为还有一个原因是空格符、换行符之类的问题,因为txt文件没问题,csv文件就有该问题。
参考:
http://glaros.dtc.umn.edu/gkhome/node/760
一些有用信息:
http://glaros.dtc.umn.edu/gkhome/node/422
在这里插入图片描述

http://glaros.dtc.umn.edu/gkhome/node/567
在这里插入图片描述

第二种报错:
Premature end of input file while reading vertex 1.
原因分析:换行问题
参考:
http://glaros.dtc.umn.edu/gkhome/node/825

第三种报错:
Edge 6 for vertex 4 is out of bounds
原因分析:
中间不允许越点,即点数应该是连续的。
比如一共只有5个点,但是给出的点的信息中显示顶点4连接了顶点6,如果满足点数连续的话,显然5个顶点中是不存在顶点6的。
参考:
https://blog.csdn.net/cloudeagle_bupt/article/details/48542557

猜你喜欢

转载自blog.csdn.net/yaochuyi/article/details/88073396