igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] igraph_path_length_hist()


From: Tamas Nepusz
Subject: Re: [igraph] igraph_path_length_hist()
Date: Tue, 13 Apr 2010 18:41:09 +0100

> I am using igraph_path_length_hist() to get the path length histogram. It 
> always shows "segment default". 
You cannot pass NULL as the third argument of igraph_path_length_hist as this 
is the place where the number of unconnected vertex pairs will be returned. So 
the solution is:

igraph_real_t unconn;
igraph_vector_init(&hist_path, 0);
igraph_path_length_hist(&graph, &hist_path, &unconn, 0);    

-- 
T.





reply via email to

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