igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] graph.knn in R


From: Gábor Csárdi
Subject: Re: [igraph] graph.knn in R
Date: Thu, 5 Jul 2012 19:56:18 -0400

2012/7/5 Umberto77 <address@hidden>:
> Hi,
> I've got probblems with gaph.knn in R using a weighted directed graph. It is
> supposed to ignore directions isn't it?
> that's what I've got/
>> graph.knn(g, vids=V(g), weights=TRUE)
> Errore in graph.knn(g, vids = V(g), weights = TRUE) :
>   At structural_properties.c:6493 : Average nearest neighbor degree Works
> only with simple graphs, Invalid value
> thanks a lot!

Yes, the edge directions are ignored, the problem is that your graph
is not simple, i.e. is contains either multiple and/or loop edges. If
you don't need those, you can delete them with simplify().

Gabor

> Umberto Medicamento
>
> ----
> Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP
> autenticato? GRATIS solo con Email.it
>
> Sponsor:
> Castelsardo: Hotel Pedraladda superior Lo splendido mare della Sardegna da
> Euro 69 al giorno Allinclusive. Bambini 0 - 11 anni GRATIS. Prenota subito
> Clicca qui
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>



-- 
Gabor Csardi <address@hidden>     MTA KFKI RMKI



reply via email to

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