igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Suspicious results produced by the function neighborhood_si


From: Tamas Nepusz
Subject: Re: [igraph] Suspicious results produced by the function neighborhood_size
Date: Sat, 10 Jun 2017 21:50:25 +0200

Hi,

Did you set the value of the "mode" argument to "OUT"? Note that the default value is "ALL", meaning that directed edges will be followed in both directions.

T.

On Sat, Jun 10, 2017 at 9:40 PM, 闵超 <address@hidden> wrote:
Hi all!

I came across some suspicious results by the igraph function neighborhood_size:

neighborhood_size(vertices=Noneorder=1mode=ALL)

For each vertex specified by vertices, this function should return the number of vertices reachable from that vertex in at most order steps. My network is a directed citation network containing 531, 480 vertices (each is a paper) and their citation relationships (about 6 million edges). I used neighborhood_size to calculate the number of vertices reachable from a vertex in at most 50 steps and it returned a result of 506, 255. I am quite sure there couldn't be so many vertices reachable from that vertex. So I used Networkx to calculate the same thing and it returned a result of 17, 564, which seems to be more reasonable. 

All the output about my current research is based on igraph. But I found so many suspicious results of this kind. Can anyone help me find out what the problem is?

Thanks!
Chao
--
Chao MIN, 闵超
Visiting PhD student, School of Informatics and Computing, Indiana University Bloomington
PhD candidate, School of Information Management, Nanjing University

_______________________________________________
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]