igraph-help
[Top][All Lists]
Advanced

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

[igraph] invalid conversion from 'void *' to 'const igraph_t *'


From: Yi Cao
Subject: [igraph] invalid conversion from 'void *' to 'const igraph_t *'
Date: Wed, 18 May 2011 10:08:48 -0700

Hello all,
 
The following is part of my code,
......
igraph_vector_ptr_t compolist;
igraph_vector_ptr_init(&complist, 100);
for (i=0; i<igraph_vector_ptr_size(&complist); i++)
 {
   size=igraph_ecount(VECTOR(complist)[i]);
   if (size>max) max=size;
 }
igraph_vector_ptr_destroy(&compolist);
......
When I tried to compile it, it returned the following errors:
error: invalide conversion from 'void *' to 'const  igraph_t *';
error: initializing argument 1 of ' igraph_integer_t igraph_ecount(const igraph_t *)'
 
I do not know where the mistakes are in the code. Can anyone tell me the mistakes? Thank you very much.
 
Best,
Yi
 

reply via email to

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