[Nauty-list] Using combinatorial data
Gordon Royle
gordon at csse.uwa.edu.au
Wed May 23 13:08:27 EST 2007
This template file will read (from standard in) a list of graphs in
g6 or s6 format...
#include "gtools.h"
main(argc,argv)
int argc;
char **argv;
{
graph *g;
int m,n;
int codetype;
FILE *infile;
infile = opengraphfile(NULL,&codetype,0,1);
while ((g = readg(infile,NULL,0,&m,&n)) != NULL)
{
//PUT YOUR CODE HERE
free(g);
}
}
On 23/05/2007, at 10:32 AM, Elton Zhang wrote:
> Dear all,
> There are some combinatorial data on Professor Mckay's web pages. I
> am writing a program to use them. My target is that, from the
> collection of simple graphs, my program will pick up all those
> graphs having a certain property. So the action carried out will be
> accessing the data in some .g6 files, testing each graph for the
> property and then write the one with the answer "yes" to other .g6
> files.
>
> My question here is that whether there is a interface in the
> package of Nauty for reading and writing .g6 files? It would be
> appreciated if you could give me some advises on such works.
>
> Thank you for your attension!
>
> Best Regards,
> Zan-Bo Zhang
>
> 抢注雅虎免费邮箱3.5G容量,20M附件!
> _______________________________________________
> Nauty-list mailing list
> Nauty-list at cs.anu.edu.au
> http://dcsmail.anu.edu.au/cgi-bin/mailman/listinfo/nauty-list
--
Associate Professor Gordon Royle
Department of Computer Science & Software Engineering
University of Western Australia
http://people.csse.uwa.edu.au/gordon
More information about the Nauty
mailing list