/* This is a sample of how to call geng as a procedure rather than *runningitasaseparateprocess.Thebasicideaistoconstruct *anargumentlistforgeng'smain()function.Atcompiletime, *assignanametothemacrosOUTPROCandGENG_MAIN.Atypical *Unix-stylecompilationcommandwouldbe: gcc-ocallgeng-O3-DMAXN=WORDSIZE-DOUTPROC=myoutproc-DGENG_MAIN=geng_main\ callgeng.cgeng.cnauty.a *Youwillgetbestperformanceifyouaddmachine-specificoptimizationarguments *suchas-march=native.
*/
#include"gtools.h"
staticunsignedlong counter;
void
OUTPROC(FILE *outfile, graph *g, int n)
{ /* This will be called for each graph. */
++counter;
}
int
GENG_MAIN(int argc, char *argv[]);
int
main(int argc, char *argv[])
{ int n,geng_argc; char nstring[6]; /* string to put n into */ char *geng_argv[6]; /* At least one bigger than geng_argc. */
/* Set up geng argument list. The 0-th argument is the command name. *TheremustbeaNULLattheend.Thisexampleisforconnected
* bipartite graphs of maximum degree at most 4 for 3-10 vertices. */
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.