igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Callback for long metric calculations.


From: Gábor Csárdi
Subject: Re: [igraph] Callback for long metric calculations.
Date: Wed, 3 Dec 2008 19:04:52 +0100

It is available, but not documented. It is, however, easy to use, look
at progress.c in the source, and search for 'igraph_progress' in the
source files. If the callback returns a nonzero value, then the
calculation is interrupted and the error handler is called.

Not all functions use it, tough. In R you can turn it on by

igraph.par("verbose", TRUE)

Gabor

On Wed, Dec 3, 2008 at 6:59 PM, Chris Wj <address@hidden> wrote:
> I think it would be beneficial if you could pass an optional callback
> parameter to certain metric calculations where the callback would be called
> periodically to update a percentage complete. This way, you could open a
> thread or process and update a gui or status-bar while the metric was being
> calculated. Is this available at all? Would it be feasible to implement?
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
>
>



-- 
Gabor Csardi <address@hidden>     UNIL DGM




reply via email to

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