R iGraph:为什么"找不到函数graph_from_literal"?

时间:2016-06-20 14:59:38

标签: r igraph

我在Ubuntu 14.04,igraph_0.7.1上使用R版本3.2.3(2015-12-10)。 出于某种原因,我无法使用函数' graph_from_literal':

library(igraph)

gg1 <- graph.empty()
gg2 <- graph( c(1,2,2,3,3,4,5,6), directed=FALSE )
gg3 <- graph.ring(10)

g<-graph_from_literal( a-+b )

如果我运行它,我会收到错误:

Error in eval(expr, envir, enclos) : 
  could not find function "graph_from_literal"

为什么?是因为这个特殊功能不在0.7.1版本中吗?但是new release 1.1.0中没有提到该功能。 据我所知,似乎比缺少像here这样的一般R函数更受限制。

0 个答案:

没有答案