igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] link analysis with R


From: Gábor Csárdi
Subject: Re: [igraph] link analysis with R
Date: Sun, 7 Sep 2014 09:00:50 -0400

On Sun, Sep 7, 2014 at 6:16 AM, Djamila MHB <address@hidden> wrote:
> Hello
> 1) I have tried to apply HITS algorithm following this R manual
> http://www.csc.ncsu.edu/faculty/samatova/practical-graph-mining-with-R/slides/pdf/Link_Analysis.pdf
>
> but I cannot find the libraries: “Link Analysis “and
> “ProximityMeasure” in CRAN project website:
>> library(igraph)
>> library(ProximityMeasure)
> Error in library(ProximityMeasure) :
>   there is no package called ‘ProximityMeasure’

This is not an igraph error, so I suggest you contact the author(s) of
that manual.

Gabor

>> A<-matrix(c(0,1,1,0,0,0,1,0,1,1,1,1,0,1,0,0,0,0,0,0,1,0,1,0,0,1,1,0,0,0,0,0,1,0,0,0),nrow=6,ncol=6,byrow=TRUE)
>> G<-graph.adjacency(A,mode=c("directed"),weighted=NULL)
>> kmax<-6
>> op<-HITS(G,kmax)
> Error: could not find function "HITS"
>> op
> Error: object 'op' not found
> 2) I have also tried to apply PageRank algorithm in collaboration
> networks “astro-ph.gml” but it has not worked:
>> astrogr<-read.graph("F:/DataMiningavecR/astro-ph.gml","gml")
>> astrogr_sub<-delete.vertices(astrogr,V(astrogr)$id[V(astrogr)$id>100])
>>page.rank 
>>(astrogr_sub,V(astrogr_sub),directed=FALSE,weights=E(astrogr_sub)$value)$vector
> Error in match.arg(arg = arg, choices = choices, several.ok = several.ok) :
>   'arg' must be of length 1
> 3) There also problems when I have tried to apply a pre-processing for
> the graph data of “astro-ph.gml” for link prediction:
> rawdataframe<-read.table("F:/DataMiningavecR/astro-ph.gml",sep="",fill=TRUE)
>> begin_year<-min(rawdataframe$V3)
> Warning message:
> In min(rawdataframe$V3) : no non-missing arguments to min; returning Inf
>> end_year<-max(rawdataframe$V3)
> Warning message:
> In max(rawdataframe$V3) : no non-missing arguments to max; returning –Inf
> Please, could you show me where is the problem?
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help



reply via email to

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