is.connected | R Documentation |
A single molecule will be represented as a complete graph. In some cases, such as for molecules in salt form, or after certain operations such as bond splits, the molecular graph may contained disconnected components. This method can be used to tested whether the molecule is complete (i.e. fully connected).
is.connected(mol)
mol |
The molecule to query. Should be a 'jobjRef' representing an 'IAtomContainer' |
'TRUE' if molecule is complete, 'FALSE' otherwise
Rajarshi Guha (rajarshi.guha@gmail.com)
get.largest.component
m <- parse.smiles("CC.CCCCCC.CCCC")[[1]]
is.connected(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.