igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] closeness syntax?


From: Yong Zou
Subject: Re: [igraph] closeness syntax?
Date: Tue, 13 Apr 2010 07:50:11 +0200

Hi Tamas,

Since my network is an unweighted, undirected network, what is this
parameter for? I don't understand this setting.

Thanks again.
Yong

On Mon, Apr 12, 2010 at 4:35 PM, Tamas Nepusz <address@hidden> wrote:
> Hi Yong,
>
> It should be a null pointer if all your edges have equal weight. Otherwise, 
> it should be a numerical vector whose ith element describes the weight of 
> edge i.
>
> --
> Tamas
>
> On 2010.04.12., at 15:32, Yong Zou wrote:
>
>> Hi Tamas,
>>
>> What is the correct setting for *weights? My previous code doesn't
>> work properly.
>> igraph_closeness(&graph, &res, igraph_vss_all(), IGRAPH_ALL, ??);
>>
>> int igraph_closeness(const igraph_t *graph, igraph_vector_t *res,
>>                    const igraph_vs_t vids, igraph_neimode_t mode,
>>                    const igraph_vector_t *weights);
>>
>> Thanks very much.
>> Yong
>>
>>
>> _______________________________________________
>> igraph-help mailing list
>> address@hidden
>> http://lists.nongnu.org/mailman/listinfo/igraph-help
>
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
>



-- 
Dr. Yong Zou
Potsdam Institute for Climate Impact Research (PIK)
Research Domain IV: Transdisciplinary Concepts & Methods

Postal address:
P.O. Box 601203
14412 Potsdam
Germany

Tel.:+49-(0)331 - 288-2467
Fax: +49-(0)331 - 288-2640
Email: address@hidden
http://www.pik-potsdam.de/members/yongzou




reply via email to

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