igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Connected nodes


From: Tamas Nepusz
Subject: Re: [igraph] Connected nodes
Date: Thu, 27 Oct 2011 15:48:30 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1

Hi Thomas,

You haven't specified whether you are working with igraph in C, R or Python,
so I'll assume you use C. The function you are looking for is called
igraph_neighbors:

http://igraph.sourceforge.net/doc/html/ch04s02s02.html#igraph_neighbors

If you are in R, you'll probably have a function called neighbors(). In
Python, the Graph object has a method called neighbors().

-- 
T.


On 10/27/2011 03:44 PM, Thomas wrote:
> How do output all the nodes that a specified node is directly  
> connected to please? So I specify Node 10, and get as output Nodes 5,  
> 7 and 18 which are the ones that 10 is connected to. The network is  
> undirected.
> 
> Thank you!
> 
> Thomas
> 
> _______________________________________________
> 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]