Bug fix for final hanging contacts in AdjacencyMatrixModule.
Bug fix in gen_multi_graphs.sh to avoid computation after empty graphs.