Re: [igraph] igraph_isohandler_t: whose responsibility is to free map12 and map21?

2015-09-08 Thread Tamas Nepusz
Hi Szabolcs,

The handler should not free map12 or map21; these are allocated by
igraph and it actually re-uses them for the next callback if I
remember correctly.

T.

T.


On Tue, Sep 8, 2015 at 9:53 AM, Szabolcs Horvát  wrote:
> Dear All,
>
> The  igraph_isomorphic_function_vf2()  function takes a callback of the type
>
> typedef igraph_bool_t igraph_isohandler_t(const igraph_vector_t
> *map12, const igraph_vector_t *map21, void *arg);
>
> Whose responsibility is it to igraph_vector_destroy() map12 and map21?
>   Does it need to be done in the handler or does
> igraph_isomorphic_function_vf2() do it?
>
> I am hoping and assuming that it is left to the handler, but I would
> like to make sure.
>
> Szabolcs
>
> ___
> igraph-help mailing list
> igraph-help@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/igraph-help

___
igraph-help mailing list
igraph-help@nongnu.org
https://lists.nongnu.org/mailman/listinfo/igraph-help


[igraph] igraph_isohandler_t: whose responsibility is to free map12 and map21?

2015-09-08 Thread Szabolcs Horvát
Dear All,

The  igraph_isomorphic_function_vf2()  function takes a callback of the type

typedef igraph_bool_t igraph_isohandler_t(const igraph_vector_t
*map12, const igraph_vector_t *map21, void *arg);

Whose responsibility is it to igraph_vector_destroy() map12 and map21?
  Does it need to be done in the handler or does
igraph_isomorphic_function_vf2() do it?

I am hoping and assuming that it is left to the handler, but I would
like to make sure.

Szabolcs

___
igraph-help mailing list
igraph-help@nongnu.org
https://lists.nongnu.org/mailman/listinfo/igraph-help