Package igraph0 deprecated and hence not able to access gspan package

北战南征 提交于 2019-12-02 01:18:03

问题


Hi am trying some examples from the book: Practical Graph mining with R for subgraph mining:

library(subgraphMining)
library(igraph)

graph1 = graph.ring(5)
graph2 = graph.ring(6)

database <- array(dim=2)
database[1] <- list(graph1)
database[2] <- list(graph2)

result <- gspan(database, support= "80%")

Getting the following error:

Error in library(igraph0) : there is no package called ‘igraph0’

This is probably because igraph0 is deprecated. So, do we need to tweak the functions in the subgraphMining package for using gspan in R; or is there any other way where I can point out to R that igraph0 is updated to igraph


回答1:


igraph0 is not updated to igraph so you shouldn't do that. The key difference between igraph0 and igraph (apart from the fact that igraph0 is way outdated) is that igraph0 uses 0-based vertex and edge indices, while igraph uses 1-based indices. Simply using igraph in place of igraph0 won't work because packages depending on igraph0 expect vertex indices to start at zero.

The only sensible solution is to ask the maintainers of packages that still depend on igraph0 to upgrade to igraph. Alternatively, you can get igraph0 from the archives.



来源:https://stackoverflow.com/questions/33268708/package-igraph0-deprecated-and-hence-not-able-to-access-gspan-package

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!