I am using igraph_path_length_hist() to get the path length histogram. It always shows "segment default".
igraph_vector_init(&hist_path, 0);
igraph_path_length_hist(&graph, &hist_path, NULL, 0);
size = igraph_vector_size(&hist_path);
printf("size is:%d\n", (int)size);
int i;
for (i=0; i<size; i++)
printf("hist length: %d\n", (int)VECTOR(hist_path)[i]);
I do not know where is wrong. Another question is about path length hist. Is it the path length distribution. That is, the number of paths with length 1, 2,...
--
Thanks