/* biplabg.c version 1.1; B D McKay, Nov 10, 2009. */
#define USAGE "biplabg [-q] [infile [outfile]]"
#define HELPTEXT \ " Label bipartite graphs so that the colour classes are contiguous.\n\
The first vertex of each component is assigned the first colour.\n\
Vertices in each colour class have the same relative order as before.\n\
Non-bipartite graphs are rejected.\n\
\n\
The output file has a header ifand only if the input file does.\n\
\n\
-q Suppress auxiliary information.\n"
static boolean
biplabel(graph *g, int m, int n, graph *h) /* h := bipartite labelling of g; else return FALSE */
{ int i,j; #if MAXN int colour[MAXN]; int lab[MAXN]; #else
DYNALLSTAT(int,colour,colour_sz);
DYNALLSTAT(int,lab,lab_sz);
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.