/* newedgeg.c version 1.1; B D McKay, Dec 2005. */
#define USAGE "newedgeg [-lq] [infile [outfile]]"
#define HELPTEXT \ " For each pair of non-adjacent edges, output the graph obtained\n\
by subdividing the edges and joining the new vertices.\n\
\n\
The output file has a header ifand only if the input file does.\n\
\n\
-l Canonically label outputs\n\
-q Suppress auxiliary information\n"
staticvoid
newedge(graph *g1, int m1, int n1, int v1, int v2, int w1, int w2,
graph *g2, int m2) /* Make g2 by subdividing edges v1-v2 and w1-w2 in g1
and adding an edge between them. Must have m2 >= m1. */
{ int i,j;
setword *s1,*s2;
s1 = g1;
s2 = g2; for (i = 0; i < n1; ++i)
{ for (j = 0; j < m1; ++j) *(s2++) = *(s1++); for (; j < m2; ++j) *(s2++) = 0;
}
staticvoid
na_newedge(graph *g1, int m1, int n1, boolean dolabel) /* Make all graphs by non-adjacent edge addition. */
{ int n2,m2; int v1,v2,w1,w2;
set *sv1,*sw1;
graph *gq; #if MAXN
graph h[MAXN*MAXM];
grapg g2[MAXN*MAXM]; #else
DYNALLSTAT(graph,h,h_sz);
DYNALLSTAT(graph,g2,g2_sz); #endif
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.