igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Neighborhood in python


From: Tamás Nepusz
Subject: Re: [igraph] Neighborhood in python
Date: Mon, 20 Feb 2012 15:19:54 +0100

If you are interested only in the list of neighbors, then use the neighbors() function. If you want the neighborhood as a subgraph, use the following idiom:

sg = g.subgraph(g.neighbors(v))

-- 
T.

On Monday, 20 February 2012 at 15:17, kaledje blaise wrote:

Hello

Is it a function to get the neigborhood of a given vertex in python like in C and R?

Thanks in advance
--
Blaise Ngonmang
PhD Student
L2TI - Univ. Paris 13
LIRIMA & UMMISCO - Univ Yaoundé I 


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