Copy-paste some code to enable the KHH generator to reproduce a file of graphs