You never initialize vs.

G.


On Mon, Feb 24, 2014 at 2:35 PM, Sana Rahim <[email protected]> wrote:

> Hi, when I run the following code i get this error  Error at
> iterators.c:769 :Cannot create iterator, invalid selector, Invalid value
> Aborted.
> igraph_t graph;
> igraph_vector_t v;
> igraph_vector_ptr_t vertices;
> igraph_vector_ptr_t edges1;
> igraph_vs_t vs;
> igraph_matrix_t res;
>  igraph_vector_ptr_t res1;
> 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, &res1, &nrgeo, 1, vs, IGRAPH_ALL);
> igraph_destroy(&graph);
>
> Where am I making a mistake, please help.
>
> Regards
>
> _______________________________________________
> igraph-help mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>
>
_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to