[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] C function for the degree of a vertex?
From: |
Gábor Csárdi |
Subject: |
Re: [igraph] C function for the degree of a vertex? |
Date: |
Thu, 5 May 2011 09:27:04 -0400 |
Minh,
see igraph_degree(), although its API is somewhat overcomplicated, as
we have discussed this recently on this mailing list.
Best,
Gabor
On Thu, May 5, 2011 at 9:25 AM, Minh Nguyen <address@hidden> wrote:
> Hi folks,
>
> Is there a C function somewhere in the igraph C library for computing
> the degree of a vertex? What about a C function for in-degree and
> out-degree in the case of digraphs? One could use igraph_neighbors()
> to get the immediate neighbours of a vertex and count the number of
> neighbours. But I want to know if there's another (possibly simpler)
> way.
>
> --
> Regards
> Minh Van Nguyen
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>
--
Gabor Csardi <address@hidden> MTA KFKI RMKI