4
當我運行這個簡單的例子,IGRAPH增加了一個頂點,我的頂點開始的2,而不是1的igraph read.graph增加了一個頂點
# very very simple graph (1-2-3)
edges <- rbind(c(1,2), c(2,3))
write.table(edges, file="edgetest.txt", sep=" ", quote=F, row.names=F, col.names = F)
g <- simplify(read.graph(file="edgetest.txt", format="edgelist", directed=F))
plot(g)
這是怎麼看起來像運行示例
後有人知道爲什麼會發生這種情況嗎?這是正確的還是我失去了一些東西