igraph-help
[Top][All Lists]
Advanced

[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


From: Tamas Nepusz
Subject: Re: [igraph] how to find the defintions of such functions as igraph_vector_search
Date: 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:

igraph_bool_t FUNCTION(igraph_vector,search)

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
http://cneurocvs.rmki.kfki.hu/igraph/

Best regards,
-- 
Tamas Nepusz




reply via email to

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