library(igraph)
ppi <- readRDS("pairwise_combinations_df_updated.rds") ## dataframe
ppi <- ppi[,c("int1","int2","votes","int1_abundances","int2_abundances")]
colnames(ppi) <- c("node1","node2","weight","int1_abundances","int2_abundances")
g3 <- graph_from_data_frame(ppi, directed = FALSE)
gg <- calcCentrality(g3)
Error in makeCentralityMatrix(gg, weights = weights) :
object 'igraph.arpack.default' not found
traceback()
4: page_rank(graph = graph, algo = algo, vids = vids, directed = directed,
damping = damping, personalized = personalized, weights = weights,
options = options)
3: page.rank(graph = gg, vids = V(gg), directed = FALSE, weights = weights,
options = igraph.arpack.default)
2: makeCentralityMatrix(gg, weights = weights)
1: calcCentrality(g3)
Trying to run
calcCentralityon anigraphobject, but encountered this error