havel_hakimi_graph method instead of configuration model
loops in shell