Removes unnecessary intermediate list creation in hotnet2.induce_infmat