Learning-Order Autoregressive Models with Application to Molecular Graph Generation