Matthew,
there is no such function. You need to keep track of that. It is
actually not possible to write such a function, IMHO, because some
architectures do not zero out newly allocated memory. Although,
probably most of the do, nowadays.
What you can do, is filling the igraph_t by zeros after you allocate
it, and then check whether the 'from' field is zero or not. It should
not be zero for a valid graph.
Best,
Gabor
On Mon, Mar 7, 2011 at 10:28 AM, Matthew Walker
<address@hidden> wrote:
Hi,
I currently have a problem in that my program seg faults because I am
calling igraph_destroy() on an uninitialized graph.
Is there a function to tell whether the graph is initialized?
Thanks,
Matthew
_______________________________________________
igraph-help mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/igraph-help