summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorAlex Auvolat--bernstein <auvolat@clipper.ens.fr>2013-12-04 16:49:31 +0100
committerAlex Auvolat--bernstein <auvolat@clipper.ens.fr>2013-12-04 16:49:31 +0100
commitcbec036a66960eea2ff1f1cda1f1e07f39461eb9 (patch)
tree7f19c834dede1729c40eb861f78fd2d8d5f137f2 /main.c
parent77db931b94870a8f28eef482091924471cd18d64 (diff)
downloadAlgoProg-Projet-cbec036a66960eea2ff1f1cda1f1e07f39461eb9.tar.gz
AlgoProg-Projet-cbec036a66960eea2ff1f1cda1f1e07f39461eb9.zip
Added algorithm C (does not work)
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 3 insertions, 1 deletions
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] [<graph file>]\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 <file.dot>\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;
}