| Modifier and Type | Class and Description |
|---|---|
| pack-priv static interface |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(T obj)
Overrides java. Implements java. Adds the specified element to this set if it is not already present (optional operation). |
| private void | |
| private Set | |
| public NodeData | |
| public Set | |
| public Iterator | iterator()
Implements abstract java. Implements java. Returns an iterator over the elements in this set. |
| private void | |
| public int | size()
Implements abstract java. Implements java. Returns the number of elements in this set (its cardinality). |
| pack-priv void |
| nodeToData | back to summary |
|---|---|
| private Map<T, NodeData> nodeToData | |
| GraphImpl | back to summary |
|---|---|
| public GraphImpl() | |
| GraphImpl | back to summary |
|---|---|
| public GraphImpl(Collection<T> coll) | |
| add | back to summary |
|---|---|
| public boolean add(T obj) Overrides java. Implements java. Doc from java. Adds the specified element to this set if it is not already present
(optional operation). More formally, adds the specified element
The stipulation above does not imply that sets must accept all
elements; sets may refuse to add any particular element, including
| |
| clearNodeData | back to summary |
|---|---|
| private void clearNodeData() | |
| collectRootSet | back to summary |
|---|---|
| private Set | |
| getNodeData | back to summary |
|---|---|
| public NodeData getNodeData(T node) Implements org. | |
| getRoots | back to summary |
|---|---|
| public Set Implements org. | |
| iterator | back to summary |
|---|---|
| public Iterator Implements abstract java. Implements java. Doc from java. Returns an iterator over the elements in this set. The elements are returned in no particular order (unless this set is an instance of some class that provides a guarantee). | |
| markNonRoots | back to summary |
|---|---|
| private void markNonRoots() | |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this set (its cardinality). If this
set contains more than | |
| visitAll | back to summary |
|---|---|
| pack-priv void visitAll(GraphImpl. | |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| visit | back to summary |
|---|---|
| public void visit(Graph<T> graph, T node, NodeData nd) | |