[Top][All Lists]

[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: Sun, 10 Oct 2010 18:54:13 -0300

Ok, but,

I have created my graph with:

igraph_weighted_adjacency(grafo, &w_adj, IGRAPH_ADJ_MAX, 0);

can i use the name parameter as NULL at EANV()?

#define EANV(graph,n,vec)
graph: The graph.
n: The name of the attribute.
vec: Pointer to an initialized vector, the result is stored here. It
will be resized, if needed.

what is the name that i need to use?

Thanks for all.


2010/10/10 Gábor Csárdi <address@hidden>:
> Hi,
> for this you need to use the attribute handler, as
> igraph_weighted_adjacency adds edge weights as attributes. Please see
> http://igraph.sourceforge.net/doc/html/ch09s02.html
> http://igraph.sourceforge.net/doc/html/ch09s02s01.html#igraph_cattribute_EANV
> http://igraph.sourceforge.net/doc/html/ch09s02s01.html#EANV
> Then you can pass the edge weight vector to igraph_community_fastgreedy.
> Best,
> Gabor
> On Sat, Oct 9, 2010 at 8:26 PM, Guilherme Ferraz de Arruda
> <address@hidden> wrote:
>> Hi,
>> I was trying to use the igraph_community_fastgreedy() function with C,
>> but how can i use the: const igraph_vector_t *weights ?
>> What is the sequence of edges?
>> I have builded my graph with igraph_weighted_adjacency(), may i need
>> to use the weights vector?
>> Thanks for all.
>> Guilherme.
>> _______________________________________________
>> 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]