[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] Attributes in use
From: |
Gábor Csárdi |
Subject: |
Re: [igraph] Attributes in use |
Date: |
Tue, 17 Nov 2009 13:58:11 +0100 |
On Thu, Nov 12, 2009 at 2:43 PM, Tamas Nepusz <address@hidden> wrote:
> Hi,
>
>> I am using the (experimental) C-based attribute handler, and I would like to
>> check whether a given attribute label is already in use. [...] in iGraph's
>> source I found igraph_i_cattribute_has_attr() and that seems to do exactly
>> what I'd like. Unfortunately, it does not seem to be exposed for my use.
>> Can you explain the rationale for that?
> Hmmm... Gabor? I don't have any objections against exposing that function.
Sure, we can export it. As log as we don't add more functions to the
attribute handler table, everything is fine.
Gabor
>> Is there an easy way to gain access to it?
> Create a custom header file called igraph_extras.h and add the following to
> it:
>
> #ifndef IGRAPH_EXTRAS_H
> #define IGRAPH_EXTRAS_H
>
> #include <igraph/igraph.h>
>
> igraph_bool_t igraph_i_cattribute_has_attr(const igraph_t *graph,
> igraph_attribute_elemtype_t type, const char* name);
>
> #endif
>
> After that, include igraph_extras.h wherever you need
> igraph_i_cattribute_has_attr. I think that should do the trick.
>
> --
> Tamas
>
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
>
--
Gabor Csardi <address@hidden> UNIL DGM