[Top][All Lists]

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

Re: [igraph] closeness syntax?

From: Tamas Nepusz
Subject: Re: [igraph] closeness syntax?
Date: Mon, 12 Apr 2010 15:35:58 +0100

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.


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

reply via email to

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