igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] igraph_degree(), seriously?


From: Marco Guidetti
Subject: Re: [igraph] igraph_degree(), seriously?
Date: Wed, 20 Apr 2011 23:37:20 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20110307 Icedove/3.0.11

On 04/20/2011 10:41 PM, roberto pagliari wrote:
I think you can use  igraph_neighborhood or igraph_neighbors and then
compute the size of the "res" vector.

Bob

Dear Bob,

yes of course you could do that: but in the same way, you have to instantiate a vector and then get the neighbors in that vector, and then determine how long the vector is (you just skip the vs, in respect to use of igraph_degree()).

The point of my mail was "is there a quick way to do this?", since it doesn't really sound quick, to get the degree of one node, to put up all that (or this) stuff.

Thanks,

marco






reply via email to

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