[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[igraph] pagerank using igraph 0.6

From: Morais, Ana Sofia
Subject: [igraph] pagerank using igraph 0.6
Date: Fri, 10 Jun 2011 17:10:22 +0200



Following the recommendation of Tamas Nepusz, I am now using igraph 0.6 to calculate the PageRank of the vertices in a series of graphs. The code runs without any warnings now, but it returns awkward values for one of the graphs. Could it be that I am doing something wrong? Please see the code below.


Thanks for your help.







m <- matrix (c(0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0), nrow=9, ncol=9)

tm <- t(m)

net = graph.adjacency(tm, mode="directed", weighted=NULL)

pr = page.rank (net, directed = TRUE, damping = 0.85, weights = NA)$ vector

reply via email to

[Prev in Thread] Current Thread [Next in Thread]