public class SpanningTree extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean[] |
bondsInTree |
Constructor and Description |
---|
SpanningTree(IAtomContainer atomContainer)
Create a new spanning tree for the provided molecule.
|
Modifier and Type | Method and Description |
---|---|
IRingSet |
getAllRings()
All basic rings and the all pairs of basic rings share at least one edge
combined.
|
IRingSet |
getBasicRings()
The basic rings of the spanning tree.
|
int |
getBondsAcyclicCount()
Number of acyclic bonds.
|
int |
getBondsCyclicCount()
Number of cyclic bonds.
|
IAtomContainer |
getCyclicFragmentsContainer()
Returns an IAtomContainer which contains all the atoms and bonds which
are involved in ring systems.
|
IAtomContainer |
getPath(IAtomContainer spt,
IAtom atom1,
IAtom atom2)
Find a path connected a1 and a2 in the tree.
|
IAtomContainer |
getSpanningTree()
Access the computed spanning tree of the input molecule.
|
int |
getSpanningTreeSize()
Size of the spanning tree specified as the number of edges in the tree.
|
boolean |
isDisconnected()
Is the molecule disconnected and has more then one component.
|
public SpanningTree(IAtomContainer atomContainer)
atomContainer
- molecule to make a spanning tree for.public boolean isDisconnected()
public IAtomContainer getSpanningTree()
public IAtomContainer getPath(IAtomContainer spt, IAtom atom1, IAtom atom2) throws NoSuchAtomException
spt
- spanning treeatom1
- start of path (source)atom2
- end of path (target)NoSuchAtomException
- thrown if the atom is not in the spanning
treepublic IRingSet getBasicRings() throws NoSuchAtomException
NoSuchAtomException
- atoms not found in the moleculepublic IAtomContainer getCyclicFragmentsContainer()
getAllRings()
,
getBasicRings()
public IRingSet getAllRings() throws NoSuchAtomException
NoSuchAtomException
- atom was not found in the moleculegetBasicRings()
public int getSpanningTreeSize()
public int getBondsAcyclicCount()
public int getBondsCyclicCount()
Copyright © 2018. All Rights Reserved.