igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Re: shortest path length


From: Gábor Csárdi
Subject: Re: [igraph] Re: shortest path length
Date: Thu, 18 Jun 2009 15:01:22 +0200

It should be

VECTOR(result_paths)[0] = &result_path;

I believe. And also, result_path is not a pointer, it is an actual igraph_vector_t object. But I have no time right now to run your code, sorry.

G.

On Thu, Jun 18, 2009 at 1:52 PM, Yong Zou <address@hidden> wrote:
Hi there,

It seems not working. I only got "Segmentation fault", no useful message.

> igraph_vector_ptr_init(&result_paths, 1);
> VECTOR(*result_paths)[0] = result_path;

I changed this to VECTOR(result_paths)[0] = result_path;

Best,


_______________________________________________
igraph-help mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/igraph-help



--
Gabor Csardi <address@hidden>     UNIL DGM


reply via email to

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