[Nauty-list] accept only graphs with subgraphs isomorphic to predefined subset

Hoy, Robert rshoy at usf.edu
Fri Oct 25 02:40:48 EST 2013


Hi, Brendan.  That worked great!

Thanks,
Rob

Robert Hoy
Assistant Professor of Physics
University of South Florida
813-974-0063

On Oct 22, 2013, at 10:38 PM, Brendan McKay <Brendan.McKay at anu.edu.au<mailto:Brendan.McKay at anu.edu.au>> wrote:

Hi Robert,

You can use the callgeng method as someone else suggested, but you
can also do it within the PRUNE function using static variables.

Inside your PRUNE function do this:

static boolean initialized = FALSE;
...
   if (!initialized)
   {
        --- read in the graphs
        initialized = TRUE;
   }

This will read the graphs in on the first time geng calls the PRUNE
function.  Make sure the data structure used to hold the graphs is
also declared static, so that it won't disappear when the function
returns.

Brendan.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.anu.edu.au/mailman/private/nauty/attachments/20131024/52f6fa47/attachment.html 


More information about the Nauty mailing list