Computes the modularity given the graph and results files