molecular_formula_to_dict# molecular_formula_to_dict(formula)[source]# Get molecular formula dictionary with elements sorted in alphabetical order. Parameters: formula (str) – Molecular formula, e.g., C1H4 Returns: Dictionary with keys as elements and values as the number of elements in the molecule. Return type: dict