【发布时间】:2013-02-27 08:53:37
【问题描述】:
我正在尝试使用delete.vertices(graph ,vertex id) 删除图中的顶点,但我看到此错误:”Cannot create iterator, Invalid vertex id, Invalid vertex id”
这是我的代码:
graph<-read.graph(paste0("H:/graph.txt"),format="ncol",directed="TRUE")
delete.vertices(graph,c(717527,61373))
717527 和 61373 是我的顶点数。
这是图表:
我该怎么做?
【问题讨论】:
标签: r social-networking igraph