[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] how to find the defintions of such functions as igraph_vect
Re: [igraph] how to find the defintions of such functions as igraph_vector_search
Mon, 24 Sep 2007 11:50:36 +0200
Dear Zhongmin Xiong,
> But i have compiled community.c(it can be passed!),and cannot find the
> definitions of these functions such as igraph_vector_search(neip, 0,
> maxedge, &pos). I only found its decalration in vector.h as
> follows:igraph_bool_t FUNCTION(igraph_vector,search)(const TYPE
> (igraph_vector) *v, long int from, BASE what, long int *pos). I tried
> to find it by looking for the string like "igraph_bool_t
> igraph_vector_search" in all files, but still cannot f
> ind its definition.
igraph uses a technique similar to C++ templates but "emulated" in C.
The C core of igraph contains multiple vector-like types that are only
different in the base data type they are able to store. The common
"core" of the implementation is stored in a file called vector.pmt or
vector_pmt.hc (don't know which one we have used in 0.4.3), "pmt"
standing for "poor man's template". You'll have to look for a line
starting like this:
Please check whether vector.pmt or vector_pmt.hc is included in the
source distribution you downloaded. If not, you'll be able to find
them in the C source distribution downloadable from