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: Gábor Csárdi
Subject: Re: [igraph] Error at iterators.c
Date: Tue, 25 Feb 2014 08:52:36 -0500

See http://igraph.org/c/doc/igraph-Iterators.html

Gabor


On Mon, Feb 24, 2014 at 11:45 PM, Sana Rahim <address@hidden> wrote:
Hi, thanks for immediate reply. How should I initialize vs? When i initialize it like igraph_vs_t vs=3 or give value to vs , it says invalid initializer.

Regards


On Tuesday, 25 February 2014 1:28 AM, Gábor Csárdi <address@hidden> wrote:
You never initialize vs.

G.


On Mon, Feb 24, 2014 at 2:35 PM, Sana Rahim <address@hidden> 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
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help





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



reply via email to

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