[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] problem about calculating closeness centrality
From: |
Tamas Nepusz |
Subject: |
Re: [igraph] problem about calculating closeness centrality |
Date: |
Thu, 5 Feb 2015 16:17:24 +0100 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
> igraph_vector_t v_closeness;
> igraph_vector_init(&v_closeness, 0);
> graph_closeness(&g, &v_closeness, igraph_vss_all(), IGRAPH_ALL, 0);
> the result in v_closeness is zero.
Are you sure it is? How do you print it? Can you use igraph_vector_print() to
confirm that indeed it contains zeros? If so, please send a full, compilable,
self-contained and *small* example that demonstrates your problem -- there are
several things happening outside the code snippet you posted and the problem
could be there (e.g., the way you load the graph or the way you try to print
the results).
Best,
T.