igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] ER network construction exception in using cygwin as runnin


From: Gábor Csárdi
Subject: Re: [igraph] ER network construction exception in using cygwin as running environment
Date: Mon, 14 Nov 2016 14:01:12 +0000

er should point to an allocated igraph_t object. You did not allocate it. Do

igraph_t er;
igraph_erdos_renyi_game(&er, ...);

or

igraph_t *er = malloc(...);
igraph_erdos_renyi_game(er, ...);

if you want to allocate it on the heap.

Gabor


On Mon, Nov 14, 2016 at 1:53 PM, address@hidden
<address@hidden> wrote:
> Dears:
>     I encounter a very tough problem when I run igraph in cygwin.
>     The code list is as follows:
> int main(int argc, char* argv[]){
> igraph_integer_t N = 10000;
> igraph_real_t average_degree = 10;
> igraph_real_t p = average_degree/(N-1);
> igraph_real_t rho0 = 0.1;
> igraph_real_t recover_probability = 0.5;
> igraph_real_t lambda = 0.8;
> int adoption_threshold = 3;
> igraph_t *er;
> igraph_erdos_renyi_game(er, IGRAPH_ERDOS_RENYI_GNP, N, p, IGRAPH_UNDIRECTED,
> IGRAPH_NO_LOOPS);
>
> return 0;
> }
>
> I want to create a ER network using the above parameters, but when I run to
> the "igraph_erdos_renyi_game()" line, I encounter an exception as follows:
> 0 [main] socialContagion 7800 cygwin_exception::open_stackdumpfile: Dumping
> stack trace to socialContagion.exe.stackdump,
> which makes me crazy.
>
> Please help me to handle it, it is very critical for me to go further.
> Best wishes!
> Your sincerely!
> ________________________________
> address@hidden
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>



reply via email to

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