LEWIS molecular formula valence test and SENIOR test for the existence of molecular graphs.
Arguments
- element_frequencies
table of element frequencies for a set of molecular formulas as returned by
elementFrequencies()
.- valences
named list of element valences
Examples
element_frequencies <- elementFrequencies(c('C12H22O11','C12H22NO11'))
lewis(element_frequencies)
#> [1] TRUE FALSE
senior(element_frequencies)
#> [1] TRUE FALSE