[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] igraph_community_fastgreedy() in C
From: |
Gábor Csárdi |
Subject: |
Re: [igraph] igraph_community_fastgreedy() in C |
Date: |
Tue, 12 Oct 2010 17:22:02 +0200 |
On Tue, Oct 12, 2010 at 5:16 PM, Guilherme Ferraz de Arruda
<address@hidden> wrote:
> I thought that if NULL for igraph_weighted_adjacency() means
> "weight", maybe it will be the same at EANV();
It is actually better to read the documentation.
> I tryed this:
>
> EANV(grafo, "weight", atributos);
>
> and got the same error., Segmentation Fault at this line.
>
> Any Idea?
maybe 'grafo' is not an igraph graph. Or you forgot to turn on the C
attribute handler. Again, you forgot to send some piece of code that
we can actually compile......
G.
> 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
>>
>
--
Gabor Csardi <address@hidden> UNIL DGM
- [igraph] igraph_community_fastgreedy() in C, Guilherme Ferraz de Arruda, 2010/10/09
- Re: [igraph] igraph_community_fastgreedy() in C, Gábor Csárdi, 2010/10/10
- Re: [igraph] igraph_community_fastgreedy() in C, Guilherme Ferraz de Arruda, 2010/10/10
- Re: [igraph] igraph_community_fastgreedy() in C, Gábor Csárdi, 2010/10/10
- Re: [igraph] igraph_community_fastgreedy() in C, Guilherme Ferraz de Arruda, 2010/10/12
- Re: [igraph] igraph_community_fastgreedy() in C, Gábor Csárdi, 2010/10/12
- Re: [igraph] igraph_community_fastgreedy() in C, Guilherme Ferraz de Arruda, 2010/10/12
- Re: [igraph] igraph_community_fastgreedy() in C,
Gábor Csárdi <=
- Re: [igraph] igraph_community_fastgreedy() in C, Tamas Nepusz, 2010/10/12
- Re: [igraph] igraph_community_fastgreedy() in C, Guilherme Ferraz de Arruda, 2010/10/12