getlargestcomp: Get the Largest Component in a Disconnected Molecule

Description Usage Arguments Value Author(s) Examples

Description

These methods allow one to check whether a molecule is fully connected or else retrieve the largest disconnected component

Usage

1
2

Arguments

mol

A jObjRef representing an IAtomContainer object

Value

For get.largest.component, if the input molecule has more than one disconnected component, the largest is returned. Otherwise, the molecule itself is returned.

For is.connected, TRUE if the molecule is fully connected, FALSE otherwise

Author(s)

Rajarshi Guha ([email protected])

Examples

1
2
3
m <- parse.smiles("CC.CCCCCC.CCCC")[[1]]
largest <- get.largest.component(m)
length(get.atoms(largest)) == 6

rcdk documentation built on April 30, 2018, 5:03 p.m.