Class VisitedAtoms


  • public class VisitedAtoms
    extends Object
    Helper class for the CIPTool to keep track of which atoms have already been visited.
    Source code:
    main
    Belongs to CDK module:
    cip
    • Constructor Detail

      • VisitedAtoms

        public VisitedAtoms()
        Creates a new empty list of visited IAtoms.
    • Method Detail

      • isVisited

        public boolean isVisited​(IAtom atom)
        Returns true if the given atom already has been visited.
        Parameters:
        atom - IAtom which may have been visited
        Returns:
        true if the IAtom was visited
      • visited

        public void visited​(IAtom atom)
        Marks the given atom as visited.
        Parameters:
        atom - IAtom that is now marked as visited
      • visited

        public void visited​(VisitedAtoms visitedAtoms)
        Adds all atoms from the visitedAtoms list to the current list.
        Parameters:
        visitedAtoms - the VisitedAtoms from which all atoms are added