Constructor and Description |
---|
VisitedAtoms()
Creates a new empty list of visited
IAtom s. |
Modifier and Type | Method and Description |
---|---|
boolean |
isVisited(IAtom atom)
Returns true if the given atom already has been visited.
|
void |
visited(IAtom atom)
Marks the given atom as visited.
|
void |
visited(VisitedAtoms visitedAtoms)
Adds all atoms from the
visitedAtoms list to the current
list. |
public VisitedAtoms()
IAtom
s.public boolean isVisited(IAtom atom)
public void visited(IAtom atom)
atom
- IAtom
that is now marked as visitedpublic void visited(VisitedAtoms visitedAtoms)
visitedAtoms
list to the current
list.visitedAtoms
- the VisitedAtoms
from which all atoms are
addedCopyright © 2021. All rights reserved.