[Top][All Lists]

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

[igraph] Re: betweenness and degree correlation

From: Tamas Nepusz
Subject: [igraph] Re: betweenness and degree correlation
Date: Thu, 23 Jul 2009 15:40:50 +0100
User-agent: Mutt/1.5.17 (2007-11-01)

Hi Yong,

> I find it is quite hard for me to write the python code back to C. Can
> you please help me to do that? In particular how to define source and
> target from my edge list?
Construct an edge iterator that iterates over all edges:

igraph_eit_t eit;
igraph_integer_t source, target;

igraph_eit_create(&graph, igraph_ess_all(), &eit);
while (!IGRAPH_EIT_END(eit)) {
  long int edgeID = IGRAPH_EIT_GET(eit);
  igraph_edge(&g, edgeID, &source, &target);
  /* Now source and target contains the source and target vertex IDs for
   * edge #edgeID */

  /* Do whatever you want here */


> It seems that I can't install 0.6 on my computer. Here is a short
> piece of error message. Furthermore, I couldn't find the
> assortativity.c in src.
It should be src/mixing.c, not src/assortativity.c

> foreign.c:2735:31: error: foreign-dl-header.h: No such file or directory
Hmm, this is a private header file. It looks like it was somehow left
out from the tarball. Please find the missing file in the attachment --
this should be enough to compile 0.6. The file should be placed in src/.
Please let me know if it doesn't work.


Attachment: foreign-dl-header.h
Description: Text Data

reply via email to

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