T
- The type of a Node in the graph, which must extend Node.public class GraphImpl<T extends Node<T>> extends java.util.AbstractSet<T> implements Graph<T>
Constructor and Description |
---|
GraphImpl() |
GraphImpl(java.util.Collection<T> coll) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T obj) |
NodeData |
getNodeData(T node) |
java.util.Set<T> |
getRoots() |
java.util.Iterator<T> |
iterator() |
int |
size() |
addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public GraphImpl()
public GraphImpl(java.util.Collection<T> coll)