igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] igraph_community_fastgreedy() in C


From: Guilherme Ferraz de Arruda
Subject: Re: [igraph] igraph_community_fastgreedy() in C
Date: Tue, 12 Oct 2010 12:16:36 -0300

I thought that if NULL for igraph_weighted_adjacency() means
"weight", maybe it will be the same at EANV();

I tryed this:

EANV(grafo, "weight", atributos);

and got the same error., Segmentation Fault at this line.

Any Idea?

Thanks for all.

Guilherme.

2010/10/12 Gábor Csárdi <address@hidden>:
> Hi,
>
> On Tue, Oct 12, 2010 at 4:28 AM, Guilherme Ferraz de Arruda
> <address@hidden> wrote:
>> Hi,
>>
>> I was trying to use the EANV(), but i got an error with this function.
>> I got segmentation fault
>>
>> I write a function to find communities:
>>
>> int ComunidadesFastgreedy(igraph_t *grafo, igraph_vector_t* atributos,
>>                       igraph_vector_t* modularity, igraph_matrix_t* merges){
>>
>>  igraph_vector_init(atributos, 0);
>>  igraph_vector_init(modularity,0);
>>  igraph_matrix_init(merges, 0, 0);
>>
>>  EANV(grafo, NULL, atributos);
>
> The second argument should be the name of the attribute, which in your
> case is "weight". Where did you get the idea from that the second
> argument can be NULL?
>
> [...]
>
> Gabor
>
> [...]
>
> --
> Gabor Csardi <address@hidden>     UNIL DGM
>



reply via email to

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