igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] number of nodes


From: Tamas Nepusz
Subject: Re: [igraph] number of nodes
Date: Wed, 25 Nov 2009 20:57:31 +0000

> int main(void) {
>       igraph_t *graph;
Well, if you do it this way, then your "graph" variable will be a pointer to an 
igraph_t object and the pointer is pointing to "nowhere" in the memory. (More 
precisely, it is pointing to an unpredictable location as you never initialized 
it and never created an igraph_t object it should point to). You will have to 
use "igraph_t graph" and then use &graph whenever you pass it to a function.

-- 
Tamas





reply via email to

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