[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] Segmentation fault constructing graph when using igraph_att
From: |
Gábor Csárdi |
Subject: |
Re: [igraph] Segmentation fault constructing graph when using igraph_attribute_table_t |
Date: |
Wed, 29 Oct 2008 18:38:52 +0100 |
You don't call the functions in the attribute handler's table, they
are called automatically by the igraph functions. Just call
igraph_delete_vertices to remove the vertices and the attributes are
taken care of.
For examples download the igraph source tar.gz from the homepage and
look at examples/simple/cattributes.c
Basically all you have to do is set the attribute handler table, and
then set/query the attributes.
Btw. using igraph from R or Python is much easier and more convenient,
especially if you use vertex/edge attributes.
Gabor
On Wed, Oct 29, 2008 at 6:34 PM, Natalia Olano <address@hidden> wrote:
> Hello again!
>
> Could you please provide an example on how to use the igraph_cattribute_table?
>
> If I try to call delete_vertices(igraph_t *graph, const
> igraph_vector_t *eidx,const igraph_vector_t *vidx), which is the
> function I am actually interested in using, the compiler does not find
> the function (/var/tmp//cc3hltA4.o(.text+0x28f): In function `main'::
> undefined reference to `delete_vertices').
>
> When I examine the elements from
> show_list(&gnames,>ypes,&vnames,&vtypes,&enames,&etypes) I get all
> the vectors are zero length at the return of the function even when
> the graph is not an empty graph.
>
> Thanks for your help
> --
> Natalia Olano
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
>
--
Gabor Csardi <address@hidden> UNIL DGM