igraph-help
[Top][All Lists]
Advanced

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

[igraph] Accessing the isomorphisms returned by igraph_get_isomorphisms_


From: Mark McClure
Subject: [igraph] Accessing the isomorphisms returned by igraph_get_isomorphisms_vf2
Date: Mon, 02 Mar 2009 01:17:09 -0500

How can I access the isomorphisms returned by
igraph_get_isomorphisms_vf2 (and presumably related
functions)?  Evidently, they're stored in a pointer
to an igraph_vector_ptr_t, but I've no idea how to
access the individual mappings as lists.

Here's a simplified snippet of what I've got so far:

----------------
// Create a complete graph on 3 vertices.
igraph_real_t edges[] = { 0, 1, 1, 2, 2, 0 };
igraph_vector_view(&v, edges, sizeof(edges)/sizeof(double));
igraph_create(&graph, &v, 0, IGRAPH_UNDIRECTED);

igraph_vector_ptr_t maps;
igraph_vector_ptr_init(&maps, 1);
int status = igraph_get_isomorphisms_vf2(&graph, &graph, &maps);
int size = igraph_vector_ptr_size(&maps);
------------------

At this point, I guess the mappings are stored in maps.  Also,
my status variable returns 0 and size returns 6; I guess these
are both good.  But again, how can I access the actual
permutations? 

Thanks for any assistance,
Mark McClure


reply via email to

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