[Nauty-list] Segmentation fault with readg()

Tristan Miller psychonaut at nothingisreal.com
Mon Jun 10 04:10:35 EST 2013


Dear all,

On Sunday 09 June 2013, Tristan Miller wrote:
> In 2011, a subscriber to this list asked how to read in the graphs
> produced by geng.  William Rummler's answer
> <http://dcsmail.anu.edu.au/pipermail/nauty-list/2011-January/000582.html
> > advised the subscriber to use the opengraphfile() and readg()
> functions from gtools.h; I quote the example code below.  I tried
> compiling and running this code but the output doesn't seem to
> correspond to the given graph, and moreover it seems it always crashes
> with a segmentation fault on the second call to readg():

Someone pointed out to me off-list that the problem may be with MAXM.  They 
were right;  had put an #include "nauty.h" before the #DEFINE MAXN line.  
Swapping the order solved the problem.

Regards,
Tristan

-- 
   _
  _V.-o         Tristan Miller          ><  Space is limited
 / |`-'  -=-=-=-=-=-=-=-=-=-=-=-=-=-=-  <>  In a haiku, so it's hard
(7_\\    http://www.nothingisreal.com/  ><  To finish what you
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://mailman.anu.edu.au/mailman/private/nauty/attachments/20130609/8a3db6c8/attachment.bin 


More information about the Nauty mailing list