From cbec036a66960eea2ff1f1cda1f1e07f39461eb9 Mon Sep 17 00:00:00 2001 From: Alex Auvolat--bernstein Date: Wed, 4 Dec 2013 16:49:31 +0100 Subject: Added algorithm C (does not work) --- main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index 4eb0f5d..e5b3efc 100644 --- a/main.c +++ b/main.c @@ -30,6 +30,7 @@ void usage(char *pname) { printf("\nUsage:\n\t%s [options] []\n\n", pname); printf("Available options:\n"); printf("\n -d\n\tRead input in DIMACS format\n"); + printf("\n -a\n\tUse algorithm A\n"); printf("\n -b\n\tUse algorithm B\n"); printf("\n -c\n\tUse algorithm C\n"); printf("\n -o \n\tDump graph in graphwiz .dot format\n"); @@ -50,6 +51,8 @@ int main(int argc, char **argv) { } else if (!strcmp(argv[i], "-o")) { if (++i == argc) usage(argv[0]); dump = argv[i]; + } else if (!strcmp(argv[i], "-a")) { + algo = 0; } else if (!strcmp(argv[i], "-b")) { algo = 1; } else if (!strcmp(argv[i], "-c")) { @@ -109,6 +112,5 @@ int main(int argc, char **argv) { printf("Max clique: "); dump_set(max_clique); } - delete_graph(g); return 0; } -- cgit v1.2.3