igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Re: Question about community detection


From: Tamas Nepusz
Subject: Re: [igraph] Re: Question about community detection
Date: Tue, 22 Dec 2009 15:19:45 +0000

> I run fastgreedy function, but the result shows that the merges matrix I got 
> is all zero....
Probably it isn't. The elements of the matrix are real numbers, not integers, 
but you try to print them as integers. Cast them explicitly to an integer 
before printing:

fprintf(file2, "%ld ", (long)MATRIX(mat, i, k));

-- 
T.





reply via email to

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