igraph-help
[Top][All Lists]
Advanced

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

[igraph] Neighbors Function


From: Tao Wang
Subject: [igraph] Neighbors Function
Date: Fri, 29 Apr 2016 17:54:22 +0100

Hi,

According to online document, predecessors function is equivalent to calling 
the Graph.neighbors method with type=IN, and successors is equivalent to 
calling the Graph.neighbors method with type=OUT.
However, in my test, they are not totally equivalent. The returned list from 
Graph.neighbors always includes the input vertex, while those from predecessors 
and successors don’t. So the size of returned list from neighbors is always 
larger 1 than those from other two methods.
Not sure whether it is a bug?

Best,
Tao


reply via email to

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