This program computes and minimizes betweenness and stress centrality in undirected graphs by evaluating the impact of adding missing edges.
To compile the code, run:
g++ -fopenmp final.cpp -o finalMake sure you have a C++ compiler with OpenMP support.
./final <input_file>If no input file is provided, the program will prompt you to enter one manually.
The input graph should be in a suitable format expected by readGraph(filename).
The program outputs:
- Initial and minimized centrality values.
- Edges responsible for minimum betweenness and stress.
- Runtime performance.