> 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. _______________________________________________ igraph-help mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/igraph-help
