igraph-help
[Top][All Lists]
Advanced

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

[igraph] igraph_path_length_hist()


From: zhengjun chen
Subject: [igraph] igraph_path_length_hist()
Date: Tue, 13 Apr 2010 13:24:11 -0400

Hi,

I am using igraph_path_length_hist() to get the path length histogram. It always shows "segment default". 
My code looks likes as follows:
    
      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

reply via email to

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