Skip to content

导入自建数据集的边数据失败 #3209

Answered by siyuan0322
Suchun-sv asked this question in Q&A
Discussion options

You must be logged in to vote

因为你的点文件,默认用的 id (int64) 做的主键类型。但是边文件的src和dst是string。
你需要这样,
graph = sess.g(oid_type='str')
然后要么把点文件的name挪到第一列,要么指定主键为name列

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@siyuan0322
Comment options

Answer selected by sighingnow
@Suchun-sv
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants