igraph-help
[Top][All Lists]
Advanced

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

[igraph] [DOC] Python neighbors() documentation reverses OUT/IN meaning?


From: Matteo Fortini
Subject: [igraph] [DOC] Python neighbors() documentation reverses OUT/IN meaning?
Date: Fri, 23 Jan 2015 12:08:19 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

Hi,
in the page http://igraph.org/python/doc/igraph.GraphBase-class.html#neighbors
it's said
Returns adjacent vertices to a given vertex.

Parameters:
vertex - a vertex ID
mode - whether to return only predecessors (OUT), successors (IN) or both (ALL).
It seems to me that it inverts the meaning between predecessors an successors.
A quick test on igraph seems to confirm: if I get v from neighbors(u,mode=OUT) and I search for (v,u) i.e. v is a predecessor of u, I cannot find the edge, while the contrary works.

Thank you for this beautiful work,
Matteo

reply via email to

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