public class ConnectivityChecker extends Object
boolean isConnected = ConnectivityChecker.isConnected(atomContainer);
A disconnected AtomContainer can be fragmented into connected fragments by using code like:
MoleculeSet fragments = ConnectivityChecker.partitionIntoMolecules(disconnectedContainer); int fragmentCount = fragments.getAtomContainerCount();
Constructor and Description |
---|
ConnectivityChecker() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isConnected(IAtomContainer atomContainer)
Check whether a set of atoms in an
IAtomContainer is connected. |
static IAtomContainerSet |
partitionIntoMolecules(IAtomContainer container)
Partitions the atoms in an AtomContainer into covalently connected components.
|
static IAtomContainerSet |
partitionIntoMolecules(IAtomContainer container,
int[] components) |
public static boolean isConnected(IAtomContainer atomContainer)
IAtomContainer
is connected.atomContainer
- The IAtomContainer
to be check for connectednessIAtomContainer
is connectedpublic static IAtomContainerSet partitionIntoMolecules(IAtomContainer container)
container
- The AtomContainer to be partitioned into connected components, i.e. moleculespublic static IAtomContainerSet partitionIntoMolecules(IAtomContainer container, int[] components)
Copyright © 2021. All rights reserved.