[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] [DOC] Python neighbors() documentation reverses OUT/IN mean
From: |
Tamas Nepusz |
Subject: |
Re: [igraph] [DOC] Python neighbors() documentation reverses OUT/IN meaning? |
Date: |
Fri, 23 Jan 2015 13:24:02 +0100 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
Hi,
Thanks for the report, this has now been fixed in the following commit:
https://github.com/igraph/python-igraph/commit/4581a57bb46c89d14cd82f27d53827cdbdffc04c
All the best,
Tamas
On 01/23, Matteo Fortini wrote:
> 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
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help
--
T.