igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] graph attributes


From: Gábor Csárdi
Subject: Re: [igraph] graph attributes
Date: Fri, 13 Mar 2009 16:54:28 +0100

Marco,

first, you are generally better off using the R or Python interface if
you deal with attributes. The C support for them is not very well
tested (none of us uses it) and might be quite inefficient.

If you still want to use C for this, see the example supplied in the
'cattributes.c' file, it is in examples/simple in the igraph tarball.
You can also download it from here:
http://bazaar.launchpad.net/~igraph/igraph/0.5-main/annotate/head%3A/examples/simple//cattributes.c

If it does not work for you, then you will need to send us some code
that reproduces the error and also some information about your system
and igraph version.

Best,
Gabor

On Fri, Mar 13, 2009 at 4:22 PM, marco <address@hidden> wrote:
> hi,
> i am trying to use the attributes with igraph C library, but i am not
> successful.
> If i initialize an igraph_attribute_table_t by using
> igraph_i_set_attribute_table() i get segmentation faults (this does not
> happen if i don't call it).
> I know it can seem few detail but all i do is:
>  initializing the table
>  creating a graph by igraph_empty()
>  add edges loaded from a sql database
>
> if i do those steps without attributes table the graph is created and i
> can successfully use the igraph_clusters function on the graph. As soon
> as i try to use attributes i get SIGSEGV.
>
> any idea?
>
> marco
>
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
>



-- 
Gabor Csardi <address@hidden>     UNIL DGM




reply via email to

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