3 /* ALNeM builder. Take an interference matrix as argument, */
4 /* and reconstruct the corresponding graph itself */
6 /* Copyright (c) 2003 Martin Quinson. All rights reserved. */
8 /* This program is free software; you can redistribute it and/or modify it
9 * under the terms of the license (GNU LGPL) which comes with this package. */
15 #include <tbx_graph.h> /* alvin's graph toolbox (+ reconstruction algorithm) */
17 int main(int argc,char *argv[]) {
18 TBX_Graph_t graph; /* a dummy graph containing all hosts */
20 TBX_InterfTable_t interf; /* the measured interferences */
21 TBX_Graph_t builded_graph; /* the graph builded from the interferences */
24 fprintf(stderr,"alnem_builder: USAGE:\n");
25 fprintf(stderr," alnem_builder interference_file\n");
29 if (TBX_Graph_interferenceTableRead (argv[1],&graph,&interf,&host_fifo)) {
30 fprintf(stderr,"Can't read the interference data, aborting\n");
34 builded_graph = TBX_Graph_exploreInterference(interf);
35 TBX_Graph_exportToGraphViz(builded_graph, "toto.dot");