A theoretical approach to the regioselectivity in 1,3-dipolar cycloadditions of diazoalkanes, hydrazoic acid and nitrous oxide to acetylenes, phosphaalkynes and cyanides