|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
AtomGraph represents the graph theoretical construct of a graph as applied to
a set of Atoms. AtomGraph places the additional restriction on the
AtomCollection and AtomPairCollection interfaces that there are no
duplicate items as determined by operator ==.
In graph theoretical terms, an AtomGraph is a simple, undirected, unweighted graph
whose verticies are Atoms and whose edges are AtomPairs.
The Atoms and AtomPairs in an AtomGraph may or may not
belong to a single Molecule, depending on implementation.
| Method Summary | |
int |
countNeighbors(Atom atom)
Returns the number of Atoms connected to atom in the context of
this AtomGraph. |
AtomIterator |
iterateNeighbors(Atom atom)
Returns an iterator over all neighbors of atom in the context of this
AtomGraph. |
| Methods inherited from interface net.sf.octet.collection.AtomCollection |
containsAtom, countAtoms, getAtom, getAtomIndex, iterateAtoms, toAtomArray |
| Methods inherited from interface net.sf.octet.collection.AtomPairCollection |
containsAtomPair, containsAtomPair, countAtomPairs, getAtomPair, getAtomPair, getAtomPairIndex, iterateAtomPairs, toAtomPairArray |
| Method Detail |
public AtomIterator iterateNeighbors(Atom atom)
atom in the context of this
AtomGraph. This iterator may contain only a subset of the Atoms
returned by atom.iterateNeighbors(), depending on the nature of this
AtomGraph.
atom - the Atom to examine
atom
NoSuchAtomException - if the specified Atom can not be foundpublic int countNeighbors(Atom atom)
Atoms connected to atom in the context of
this AtomGraph. This value will be less than or equal to the value returned
by atom.countNeighbors().
atom - the Atom to examine
atom
NoSuchAtomException - if the specified Atom can not be found
|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||