igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Error at iterators.c


From: Sana Rahim
Subject: Re: [igraph] Error at iterators.c
Date: Wed, 26 Feb 2014 02:32:17 -0800 (PST)

Thank you for reply. But when i initialize it i get segmentation fault.

#include<igraph.h>
void main()
{
igraph_t graph;
igraph_vector_t v;
igraph_vector_ptr_t res;
igraph_vector_t nrgeo;

igraph_real_t edges[] = {1, 2, 1, 4, 2, 3, 3, 7, 4, 5, 5, 6, 6, 9, 7, 8, 8, 9};

igraph_vector_view(&v, edges, sizeof(edges)/sizeof(double));

igraph_create(&graph,&v, 0, IGRAPH_UNDIRECTED);


igraph_get_all_shortest_paths(&graph, &res, &nrgeo, 1, igraph_vss_seq(2,8), IGRAPH_ALL);

igraph_destroy(&graph);

}

Regards,

reply via email to

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